全球區塊鏈監管查詢平台

繁體中文
下載WikiBit

OKX API v5 updates report Q1 2022

BRAZILIEX

相關類型: Others

2022-09-02 14:28

Dear API users: To: OKX API users From: OKX API product team Issue Date: Mar. 31, 2022 Contact us: https://t.me/OKXAPI The OKX API v5 service received numerous updates in Q1 2022 as part of our efforts to continually improve its user experience. This report summarizes those updates, and users can review detailed change logs here. Summary of updates to API v5 in Q1 2022: Trade module . Id Endpoint Change summary Date 1 Get algo order list Get algo order history Advance algo orders channel Place algo order Added new return parameters: callbackRatio,callbackSpread,activePx,moveTriggerPx 2022-01-06 2 Close positions Added new request parameters: autoCxl 2022-01-14 3 Get algo order list Get algo order history Advance algo orders channel Place algo order Added new request fields to Place Algo Order for trigger order placement 2022-01-17 4 Get algo order list Get algo order history Advance algo orders channel Place algo order Added a new parametertag 2022-01-25 Funding module . Id Endpoint Change summary Date 1 Get deposit address Added new return parameter: addrEx 2022-01-25 2 Withdrawal Lightning withdrawals Create sub-account Delete sub-account Removed funds password :pwd 2022-03-10 Convert module . 2022-03-02, Added a new function module Convert. Account module . Id Endpoint Change summary Date 1 Get Greeks Added a new endpoint 2022-01-14 2 Account greeks channel Added a new endpoint 2022-01-14 3 Position builder Added new return parameters 2022-03-10 SubAccount module . Id Endpoint Change summary Date 1 Get Managed trading sub-account list Added new endpoints 2022-01-26 2 View sub-account list Added new return parameters 2022-01-26 3 Create an APIKey for a sub-account Query the APIKey of a sub-account Reset the APIKey of a sub-account Delete the APIKey of sub-accounts Offlined endpoints 2022-03-10 Market data module . No change Public data module . No change Broker API module . Id Endpoint Change summary Date 1 All Broker interfaces Broker API migrated to Broker 2022-01-11 2 Create an APIKey for a sub-account Query the APIKey of a sub-account Reset the APIKey of a sub-account Delete the APIKey of sub-accounts Get download link Create rebate details download link Added new endpoints for Non-Disclosed Broker 2022-03-10 WebSocket module . No change Demo Trading Explorer . No cha Error code . Id Change summary Date 1 Add new error code 60024 Wrong passphrase 2022-01-06 2 Added a new error code module OTC 2022-03-02 3 Add new error code 2022-03-10 Change details: Trade module . Change 1 . Date:2022-01-06 . REST endpoints: . Get algo order list . Get algo order history . Advance algo orders channel . Place algo order . REST URLs: . GET /api/v5/trade/orders-algo-pending . GET /api/v5/trade/orders-algo-history . algo-advance channel . POST /api/v5/trade/order-algo . Description: . Get algo order list, Get algo order history, Advance algo orders channel, Added new return parameters: callbackRatio,callbackSpread,activePx,moveTriggerPx . Place algo order added new request parameters:callbackRatio,callbackSpread,activePx . added enumeration value for ordType field, move_order_stop:Trailing order . Benefit:Algo Order support more type. . Change 2 . Date:2022-01-14 . REST endpoints: . Close positions . REST URLs: . POST /api/v5/trade/close-position . Description: . Added a new request parameter autoCxl : . Benefit:Close positions is more flixable. . Change 3 . Date:2022-01-17 . REST endpoints: . Get algo order list . Get algo order history . Advance algo orders channel . Place algo order . REST URLs: . GET /api/v5/trade/orders-algo-pending . GET /api/v5/trade/orders-algo-history . algo-advance channel . POST /api/v5/trade/order-algo . Description: Added new request fields to Place Algo Order for trigger order placement . Benefit:It is more flaxible to follow algo orders . Change 4 . Date:2022-01-18 . REST endpoints: . Get algo order list . Get algo order history . Advance algo orders channel . Place algo order . REST URLs: . GET /api/v5/trade/orders-algo-pending . GET /api/v5/trade/orders-algo-history . algo-advance channel . POST /api/v5/trade/order-algo . Description: Added a new parametertag . Benefit:It is more convenient to follow algo orders and fill broker code. . Funding module . Change 1 . Date:2022-01-25 . REST endpoints:Get deposit address . REST URLs:GET /api/v5/asset/deposit-address . Description:Added new return parameter: addrEx . Benefit:It is more convenient to get node of depositing. . Change 2 . Date:2022-03-10 . REST endpoints: . Withdrawal. Lightning withdrawals. Create sub-account. Delete sub-account. REST URLs: . POST /api/v5/asset/withdrawal . POST /api/v5/asset/withdrawal-lightning . POST /api/v5/broker/nd/create-subaccount . POST /api/v5/broker/nd/delete-subaccount . Description:Removed funds password : pwd . Benefit:It is more convenient to deposit and create subaccount . Convert module . 2022-03-02, Added a new function module Convert. Account module . Change 1 . Date:2022-01-14 . REST endpoints: . Get Greeks . Account greeks channel. REST URLs: . GET /api/v5/account/greeks . account-greekschannel . Description:Added a new endpoint and a WebSocket channel . Benefit:Improve use experience of option . Change 2 . Date:2022-03-10 . REST endpoints: . Position builder . REST URLs: . POST /api/v5/account/simulated_margin . Description:Added new return parameters about value of test. . Benefit:It is more clear to calculate virtual margin. . SubAccount module . Change 1 . Date:2022-01-06 . REST endpoints: . Get Managed trading sub-account list. View sub-account list . REST URLs: . GET /api/v5/users/entrust-subaccount-list . GET /api/v5/users/subaccount/list . Description: . Get Managed trading sub-account list, Added new endpoints. View sub-account list, Added new return parameters. Benefit:The functioni subaccount is more abundant. . Change 2 . Date:2022-03-10 . REST endpoints: . Create an APIKey for a sub-account . Query the APIKey of a sub-account . Reset the APIKey of a sub-account . Delete the APIKey of sub-accounts . Description:Offlined endpoints . Benefit:Make funds more secure . Market data module . No change Public data module . No change Broker API module . ND Broker added endpoints: Create an APIKey for a sub-account Query the APIKey of a sub-account Reset the APIKey of a sub-account Delete the APIKey of sub-accounts Get download link Create rebate details download link WebSocket module . No change Demo Trading Explorer . No change Error code . Change 1 . Date:2022-01-06 . Description: . Add new error code,Wrong passphrase. . Benefit: The error situation of passphrase is more clear to users. . Change 2 . Date:2022-03-02 . Description: . Added a new error code module OTC . Benefit:The error situation of OTC is more clear to users. . Change 3 . Date:2022-03-10 . Description: . Add new error code 50034 You are not currently on the whitelist, please contact customer service . Add new error code 50035 This endpoint requires that APIKey must be bound to IP . Add new error code 59615 begin date cannot be greater than end date . Add new error code 59616 The time interval between the begin date and end date cannot exceed 180 days. . Benefit:The error situation is more clear to users. . OKX, April 21, 2022.