Problems with HitBTC clientOrderId
See original GitHub issueHi. I am using your latest version and I was trying to make a limit buy order on HitBTC.
The error that pops out is
ccxt.errors.ExchangeNotAvailable: hitbtc POST http://api.hitbtc.com/api/1/trading/new_order?nonce=6154297&apikey=****&clientOrderId=6154297&symbol=ETHBTC&side=buy&quantity=7&type=limit&price=0.0756940000 409 Conflict {"code":"InvalidArgument","message":"Fields are not valid: clientOrderId"}
The thing is, I overrided the nonce() method so that now it returns something smaller than the 8 digit number that they require.
In HitBTC create_order(..)
method could you replace the line
clientOrderId = self.nonce()
with something from here
https://docs.python.org/3/library/uuid.html
So that everyone who’s using it gets good results. Thank you. Good luck.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
HitBTC down? Current problems and outages - Downdetector
Real-time problems and outages for HitBTC. Traiding not working? Is the server down? Here you see what is going on.
Read more >API Documentation - ABOUT HitBTC API
Returns an active order by clientOrderId . Requires the "Orderbook, History, Trading balance" API key Access Right. Create/Update Margin Order. curl -X PUT...
Read more >hitbtc - Go Packages
go-hitbtc is an implementation of the HitBTC API (public and private) in Golang. This version implement V2 HitBTC API. Import. import "github.com/bitbandi/go ...
Read more >Exchanges — ccxt 2.4.71 documentation
USD → USDT : Some exchanges, like Bitfinex, HitBTC and a few other name the currency as USD in their listings, but those...
Read more >ccxt - npm
... post a link to it by opening an issue here on GitHub or send us an email. ... coding=utf-8 import ccxt hitbtc...
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 FreeTop 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
Top GitHub Comments
Yup my side. I upgraded it but PyCharm was a bit slow at updating it. Thank you.
@marinsokol5 no, I didn’t forget to upload. That’s strange, because I really did and that line should read clientOrderId = self.milliseconds (). Could you please check your version once again?
See: https://github.com/kroitor/ccxt/blob/master/ccxt/exchanges.py#L9513