<p>You almost have it! </p>

<p>BUY means that the order was the consequence of someone buying at the ask price, as opposed to creating an order at a lower-than-market price. </p>

<p>SELL means that the order was the consequence of someone selling at the bid price, as opposed to creating an order at a higher-than-market price. </p>

CC BY-SA 3.0
2018-04-05T06:20:51.460Z
2018-04-05T06:20:51.460Z
Laser-Lance
<p>The <a href="https://bittrex.com/home/api" rel="nofollow noreferrer">Bittrex API</a> has a request to get the market history:</p>

<p><code>
https://bittrex.com/api/v1.1/public/getmarkethistory?market=BTC-DOGE
</code></p>

<p>which gives a response containing the following fields:</p>

<ul>
<li>"Id"</li>
<li>"TimeStamp"</li>
<li>"Quantity"</li>
<li>"Price"</li>
<li>"Total"</li>
<li>"FillType"</li>
<li>"OrderType"</li>
</ul>

<p><code>"OrderType"</code> can be one of <code>"BUY"</code> or <code>"SELL"</code>. What does this refer to?</p>

<p>Let's assume it has a value of "SELL". Does this mean:</p>

<ol>
<li>The person who initially placed the order was selling (Seller is Maker).</li>
<li>The person who closed the order was selling (Seller is Taker)</li>
</ol>

<exchanges><api><bittrex>
Bittrex API market history -- interpreting OrderType
ronrest
# Bittrex API market history -- interpreting OrderType

(Asked by: username_0 on 2018-03-26)

The [Bittrex API](https://bittrex.com/home/api) has a request to get the market history:

`https://bittrex.com/api/v1.1/public/getmarkethistory?market=BTC-DOGE`

which gives a response containing the following fields:

* "Id"
* "TimeStamp"
* "Quantity"
* "Price"
* "Total"
* "FillType"
* "OrderType"

`"OrderType"` can be one of `"BUY"` or `"SELL"`. What does this refer to?

Let's assume it has a value of "SELL". Does this mean:

1. The person who initially placed the order was selling (Seller is Maker).
2. The person who closed the order was selling (Seller is Taker)

**Tags:** exchanges, api, bittrex


---

## 1 answers

### Answer by username_1 on 2018-04-05. Score: 0

You almost have it!

BUY means that the order was the consequence of someone buying at the ask price, as opposed to creating an order at a lower-than-market price.

SELL means that the order was the consequence of someone selling at the bid price, as opposed to creating an order at a higher-than-market price.


---

