Their amazing API documentation (https://btc-e.com/api/documentation) shows a field called is_your_order. Not sure what it means and they certainly don't explain it.

Does anyone know?

  • is_your_order = 0 does not mean the order is not yours. it does not mean it's a part of a split order too. I had only one record in transhistory and tradehistory. so, its weird and does not seem logical. – Gio_sof Apr 12 '14 at 22:30

The field indicates that the order is yours with a value of 1. With a 0, it indicates it is not an order made by you.

It's indeed nowhere documented, the only valid arguments for my explanation are the name of the variable and the fact that I can only find 0 or 1 values for it.

(I found this piece of code where they save the is_your_order field as a boolean, testing of the value ==1.)

  • If it's an order not made by me, then why would it be in my trade history? – Shamoon May 8 '13 at 12:34
  • Perhaps there's also an option to show trade history from all the market. – Steven Roose May 8 '13 at 17:52

As far as I can tell, is_your_order is used when their system doesn't fill the orders right away and their system generates new orders for smaller amounts to split up your original order into multiple new orders. For instance, I put in a sell order for 1btc. In my trade history, I see 3 transactions related to that single order:

  { pair: 'btc_usd',
  type: 'sell',
  amount: 0.441969,
  rate: 7.7,
  order_id: 87505,
  is_your_order: 0,
  timestamp: 126 }

  { pair: 'btc_usd',
  type: 'sell',
  amount: 0.16,
  rate: 7.672,
  order_id: 87402,
  is_your_order: 0,
  timestamp: 126 }

  { pair: 'btc_usd',
  type: 'sell',
  amount: 0.398031,
  rate: 7.54,
  order_id: 87208,
  is_your_order: 0,
  timestamp: 127 }

I've modified the numbers to lose some precision to mask my transaction information a bit, but if you notice, the order_id's are different and so are the rates!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.