I'm looking at some trade history provided by the kraken.com API (formatting mine):
Price Volume Time Buy/sell Limit/market Remarks ["7833.00000", "0.17400000", 1559721453.3446, "s", "l", ""], ["7830.00000", "0.04984709", 1559721484.6288, "b", "m", ""]
What I understood about trading so far:
Limit trades go on either side of the order book, at the limit set by the initiator. Buy orders go to the
bid side and sell orders to the
ask side. When a
bid meets an
ask a trade gets executed, up to the lowest amount from either side. Any remainder will remain on the order book until matched again.
Marked trades are executed near-instant by emptying the order book on the appropriate side until the order is filled.
As such, a trade is always both a buy and sell in the same time.
My questions: what is the exact definition of a buy/sell indication in the trade history? Is the sum of the volumes the total volume traded? Or should it be divided by 2?