question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with HitBTC clientOrderId

See original GitHub issue

Hi. 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marinsokol5commented, Aug 26, 2017

Yup my side. I upgraded it but PyCharm was a bit slow at updating it. Thank you.

1reaction
kroitorcommented, Aug 26, 2017

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found