一键买币
行情
NFT
广场
USD

常见问题

账户功能
用户教程
币安粉丝代币
Image
币安理财
数字货币充值&提现
买币
现货&杠杆交易
Image
数字货币衍生品
金融业务
API
安全专栏
Image
其它主题
币安闪兑
币安经纪商
NFT
Image
VIP
首页
帮助中心
常见问题
数字货币衍生品
期权交易
币安期权
幣安期權API接口和Websocket

幣安期權API接口和Websocket

2022-09-08 09:42
幣安期權交易API接口已開放:期權API接口

1. 市場數據

以下Github連接對應了不同的請求,提供了接口、參數和返回信息。
請求
描述
接口
Test Connectivity
Test connectivity to the Rest API
GET /eapi/v1/ping
Check Server Time
Test connectivity to the Rest API and get the current server time
Exchange Information
Current exchange trading rules and symbol information
GET /eapi/v1/exchangeInfo
Order Book
Get order book data
Recent Trades List
Get recent market trades
Old Trades Lookup (MARKET_DATA)
Get older market historical trades
Kline/Candlestick Data
Kline/candlestick bars for an option symbol. Klines are uniquely identified by their open time
Option Mark Price
Option mark price and greek info
24hr Ticker Price Change Statistics
24 hour rolling window price change statistics
Symbol Price Ticker
Get spot index price for option underlying
Historical Exercise Records
Get historical exercise records

2. 帳號/交易

以下Github連接對應了不同的請求,提供了接口、參數和返回信息。
請求
描述
接口
Option Account Information
Get current account information
GET /eapi/v1/account (HMAC SHA256)
Funds Transfer (USER_DATA)
Transfer fund between spot and option account
New Order (TRADE)
Send a new order
POST /eapi/v1/order (HMAC SHA256)
Place Multiple Orders (TRADE)
Send multiple option orders
Cancel Option Order (TRADE)
Cancel an active order
Cancel Multiple Option Orders (TRADE)
Cancel Multiple active orders
Cancel all Option orders on a specific symbol (TRADE)
Cancel all active order on a symbol
Cancel All Option Orders By Underlying (TRADE)
Cancel all active orders on specified underlying
Query Current Open Option Orders (USER_DATA)
Query current all open orders, status: ACCEPTED PARTIALLY_FILLED
Query Option Order History (TRADE)
Query all finished orders within 1 month, finished status: CANCELED FILLED REJECTED.
Option Position Information (USER_DATA)
Get current position information
Account Trade List (USER_DATA)
Get trades for a specific account and symbol
User Exercise Record (USER_DATA)
Get account exercise records
Account Funding Flow (USER_DATA)
Query account funding flows

3. Websocket 市場推送

用戶可以通過Websocket專區的請求方式來訂閱或者取消訂閱下列Stream。
Stream
Stream Name
描述
更新頻率
Trade Streams
The Trade Streams push raw trade information
50ms
Index Stream
Underlying index stream.
1000ms
Kline/Candlestick Streams
The Kline/Candlestick Stream push updates to the current klines/candlestick every 1000 milliseconds (if existing)
1000ms
All Market Mini Tickers Stream
24hr mini ticker info for all symbols
1000ms
24-hour TICKER
24hr ticker info for all symbols. Only symbols whose ticker info changed will be sent
50ms
New Symbol Info
New symbol listing stream
50ms
Book Depth Streams
<symbol>@depth<levels> OR <symbol>@depth<levels>@500ms or <symbol>@depth<levels>@100ms
Book depth stream. Top bids and asks, Valid levels are 10, 20, 50, 100, and 1000. When levels are set to 10/20/50/100, the stream returns partial book depth. When levels are set to 1000, the stream returns diff book depths.
100ms, 250ms or 500ms