OKX -API-演示交易
OKX API_V5
我可以通过API -DEMO和LIVE获得以下内容:
- 帐户信息
- 硬币余额
- 市场信息
- 烛台信息
我正在尝试使用API下达演示订单。
错误 - 文档说可以通过API
(
[clOrdId] =>
[ordId] =>
[sCode] => 51010
[sMsg] => The current account mode does not support this API interface.
[tag] =>
)
拨打
[curl_params] => {"instId":"BTC-USDT-SWAP","sz":2,"side":"buy","px":21396.1,"ordType":"limit","tdMode":"isolated","uly":"BTC-USDT"}
[curl_method] => POST
[curl_url] => https://www.okx.com/api/v5/trade/order
额外信息进行交易 - 一些标题 [5] - 仅仅显示原始签名的信息,
[0 - 3] [REMOVED_SIGNED_DETAILS]
[4] => OK-ACCESS-TIMESTAMP: 2022-06-26T01:59:42.614Z
[5] => SIGN: 2022-06-26T01:59:42.614ZPOST/api/v5/trade/order{"instId":"BTC-USDT-SWAP","sz":2,"side":"buy","px":21396.1,"ordType":"limit","tdMode":"isolated","uly":"BTC-USDT"}
[6] => x-simulated-trading: 1
有人是否能够与API进行演示交易?
有人看到该请求有什么问题吗?
谢谢
OKX api_v5
I can get the following via the api - demo and live:
- Account information
- Coin balance
- Market info
- Candlestick info
I am trying to place a demo order with api.
Error -- The documentation says it's possible to trade via api
(
[clOrdId] =>
[ordId] =>
[sCode] => 51010
[sMsg] => The current account mode does not support this API interface.
[tag] =>
)
Call
[curl_params] => {"instId":"BTC-USDT-SWAP","sz":2,"side":"buy","px":21396.1,"ordType":"limit","tdMode":"isolated","uly":"BTC-USDT"}
[curl_method] => POST
[curl_url] => https://www.okx.com/api/v5/trade/order
Extra info - Some of the headers
[5] - just to show the raw signed info
[0 - 3] [REMOVED_SIGNED_DETAILS]
[4] => OK-ACCESS-TIMESTAMP: 2022-06-26T01:59:42.614Z
[5] => SIGN: 2022-06-26T01:59:42.614ZPOST/api/v5/trade/order{"instId":"BTC-USDT-SWAP","sz":2,"side":"buy","px":21396.1,"ordType":"limit","tdMode":"isolated","uly":"BTC-USDT"}
[6] => x-simulated-trading: 1
Has anyone been able to do the demo trading with the api?
Does anyone see anything wrong with the request?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Swatch Trade选项卡,开放设置,您可以将帐户模式从简单到单货币保证金更改
swatch trade tab, open settings, you can change account mode from simple to single currency margin