Bitcoin Forum
May 09, 2024, 06:50:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox trading api question  (Read 445 times)
romerun (OP)
Legendary
*
Offline Offline

Activity: 1078
Merit: 1001


Bitcoin is new, makes sense to hodl.


View Profile
February 25, 2013, 02:45:44 AM
 #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 ?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!