help with okex v3 spot cancel_batch_orders
See original GitHub issue- OS: mac/ubuntu 16.04
- Programming Language version: python
- CCXT version: latest
- Exchange: okex v3
- Method: spot_post_cancel_batch_orders
import ccxt
ex = ccxt.okex3({
'apiKey': '',
'secret': '',
'password': ''
})
result = ex.spot_post_cancel_batch_orders(
params={
'instrument_id': 'BTC-USDT',
'order_ids': ['3135975779928064', '3135975777510400']
}
)
The above code gives me error:
Traceback (most recent call last):
File "/home/ubuntu/workspace/yurenji/bricks/okex-cancel-batch.py", line 11, in <module>
'order_ids': ['3135975779928064', '3135975777510400']}
File "/home/ubuntu/.pyenv/versions/3.6.5/envs/bricks/lib/python3.6/site-packages/ccxt/base/exchange.py", line 433, in inner
return entry(_self, **inner_kwargs)
File "/home/ubuntu/.pyenv/versions/3.6.5/envs/bricks/lib/python3.6/site-packages/ccxt/base/exchange.py", line 462, in request
return self.fetch2(path, api, method, params, headers, body)
File "/home/ubuntu/.pyenv/versions/3.6.5/envs/bricks/lib/python3.6/site-packages/ccxt/base/exchange.py", line 458, in fetch2
return self.fetch(request['url'], request['method'], request['headers'], request['body'])
File "/home/ubuntu/.pyenv/versions/3.6.5/envs/bricks/lib/python3.6/site-packages/ccxt/base/exchange.py", line 551, in fetch
self.handle_errors(response.status_code, response.reason, url, method, headers, http_response, json_response)
File "/home/ubuntu/.pyenv/versions/3.6.5/envs/bricks/lib/python3.6/site-packages/ccxt/okex3.py", line 2615, in handle_errors
raise ExchangeError(feedback) # unknown message
ccxt.base.errors.ExchangeError: okex3 {"message":"Invalid JSON format"}
I am not sure am I using the api correctly, or there is a bug with the api. Can you help me a bit here?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Overview – OKX API guide | OKX technical support
For Trading-related APIs (place order, cancel order, and amend order) the following conditions apply: Rate limits are shared across the REST and ...
Read more >OKEx API - An Introductory Guide - AlgoTrading101 Blog
How to execute a trade on ETH when BTC hits a certain price with the OKEx API ... Let us import the relevant...
Read more >Cryptocurrency exchange OKEX launches API V5. The old API ...
As of March 31, API v5 is available to all Unified Account users on OKEX. Since API v3 will be discontinued by the...
Read more >OKEx Spot - Tardis.dev Documentation
OKEx Spot historical market data details - currency pairs, data coverage and data ... by real-time OKEx WebSocket v3 API with addition of...
Read more >OKX: Buy Bitcoin, ETH, Crypto - Apps on Google Play
OKX is one of the most trusted cryptocurrency exchange apps in the world to buy Bitcoin (BTC), Ethereum (ETH), USDT, Shiba Inu (SHIB),...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@codemonkeyno1 i’m receiving and reading all the messages, no worries, will handle it asap.
@kroitor