Market data API: Add trade direction (buy/sell) to the "/api/trades" responses #7216
unbeaten69
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The responses provided by the
https://markets.bisq.services/api/trades
endpoint do not contain trade direction information (sell/buy) of individual trades at the moment.The "industry standard" almost all exchanges seem to adhere to these days is to show the side from the taker point of view, in relation to the base token. It means that:
BTC_USD
market, maker sells BTC, taker buys BTC -> it's a BUYBTC_USD
market, maker buys BTC, taker sells BTC -> it's a SELLXMR_BTC
market, maker sells BTC, taker buys BTC -> it's a SELLXMR_BTC
market, maker buys BTC, taker sells BTC -> it's a BUYThis piece of information can be useful for individuals who want to automate Bisq trading, for example it lets you see more easily whether the Bisq price diverges from the market price. Lets you see trends as well etc.
Beta Was this translation helpful? Give feedback.
All reactions