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.

Regarding buysells ("side") in Unified trade history

See original GitHub issue

Kroitor you are an impressive human. i have been writing a similar lib for only 6 exchanges over the past 3 months and would love to help with the websocket stuff in the future if you’d like that. One thing I’ve found is that it’s useful to have both orderbooks, trades, and “orderbook changes” (add, updates, removes), errors, and resets, as available endpoints.

I was wondering what you thought of the “side” parameter in the public trade APIs for each coin. For example, GDAX has the following listed for their buy/sell trade history:

buy side indicates a down-tick because the maker was a buy order and their order was removed. Conversely, sell side indicates an up-tick.

On the other hand, Gemini seems to list them the other way:

  • buy means that an ask was removed from the book by an incoming buy order.* sell means that a bid was removed from the book by an incoming sell order. * auction indicates a bulk trade from an auction.

Thus a “buy” on Gemini is considered a “sell” on Gdax, messing up a Unified API that doesn’t take this into consideration. As someone who has spent some time making the exact same thing as you, I feel your frustration with tedious differences like this.

I noticed in the docs you have listed: 'side': 'buy', // direction of the trade, 'buy' or 'sell'

Which is a little ambiguous.

I was just wondering whether CCXT has taken into account these buysell paramter differences between the exchanges.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kroitorcommented, Oct 27, 2017

Hi! Thx for the feedback!

I was just wondering whether CCXT has taken into account these buysell paramter differences between the exchanges.

This is currently a work in progress and we think that the side of the trade should indicate the taker order side. So, pay attention to that, because we don’t have it unified completely yet, namely, the order API (including the trades) is still under development. There may be bugs and inconsistencies here and there, because, yes, those little differences are overwhelming. We will be happy if you report all inconsistencies that you find, and this way we will find and fix them completely. We will be even happier if you submit your contributions to the library, PRs are welcome. Fixing those types of inconsistencies is most of the time very straightforward, just make sure to read the CONTRIBUTING doc in the root of this repo. As with any public library, users are free to submit their contributions, this is what a library really means, many authors. So, the answer to your questions is: YES, but NO 😃 We are working on it, be careful, pay attention and report bugs, plz.

Let me know if the above answered your question, please. I’d close this for now. And I’ll fix the difference of GDAX vs Gemini. Btw, thanks for the testing method suggestion as well, appreciate your involvement! If you find any particular inconsistency feel free to reopen this issue or open another one, or just ask your questions here if you have more.

1reaction
LRonHubscommented, Oct 27, 2017

Thanks. It appears Gdax is the exception to the 6 exchanges I’m looking at.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do exchanges have a buy/sell column in their trade history?
Yes, if someone buys at a particular price, someone else must sell at that price. But they didn't place their orders at the...
Read more >
Robinhood Cointracker
Compare price, features, and reviews of the software side-by-side to make. ... To download your Robinhood transaction history as a CSV: On Robinhood, ......
Read more >
History of trade of the People's Republic of China - Wikipedia
Trade is a key factor of the economy of China. In the three decades following the formation ... prominent role for foreign trade...
Read more >
Trade Activity Log - Sierra Chart
All entries except for historical order fills downloaded from the trading server, in the Trade ... BuySell: The side the order is on....
Read more >
How To Modify Your Car Loan And Avoid Falling Behind
If your lender offers modifications on car loans, you may be able to get some ... Be mindful that lenders will typically review...
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