Author

Topic: MtGox trading api question (Read 479 times)

legendary
Activity: 1078
Merit: 1002
Bitcoin is new, makes sense to hodl.
February 24, 2013, 09:45:44 PM
#1
According to https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1:

Code:
{
  "date":1316312781,
  "price":"3.5599",
  "amount":"3.6900096",
  "price_int":"355990",
  "amount_int":"369000960",
  "tid":"1316312781670700",
  "price_currency":"EUR",
  "item":"BTC",
  "trade_type":"bid",
  "primary":"Y",
  "properties":"limit,mixed_currency"
}

For multi currency,also returns the primary value,"Y" or "N", the primary currency is always the buyers currency
A trade can appear in more than one currency, to ignore duplicates, use only the trades having primary =Y

----

Does it mean that if my default currency is EUR then I buy BTC in USD market, there will be two records of the transactions,.... oh wait, how could one buy USD if he has EUR in the first place ? Ok, I'm confuse. Can somebody explain the cross markets scenarios and how the records in "trades" api would show ?
Jump to: