Bitcoin Forum
November 22, 2017, 03:14:15 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Mt Gox trade channel message repeats  (Read 568 times)
thezerg
Legendary
*
Offline Offline

Activity: 1246


View Profile
January 15, 2013, 06:18:25 PM
 #1

I'm trying to chase down an issue in the mt gox streaming API (or my code) where I see double transactions.  These seem to happen during big buys or dumps but not during normal processing.  Anyone else seen this?

To debug this, I threw in some code that eliminates trades with the same 'tid'.  However, I started seeing repeated transactions across different currencies like this:

{'origin': 'broadcast', 'trade': {'price_currency': 'USD', 'trade_type': 'bid', 'price_int': '1424999', 'price': 14.24999, 'primary': 'N', 'item': 'BTC', 'amount': 29.0911, 'tid': '1358271672595895', 'amount_int': '2909110000', 'date': 1358271672.0, 'type': 'trade', 'properties': 'market,mixed_currency'}, 'private': 'trade', 'channel': 'dbf1dee9-4f2e-4a08-8cb7-748919a71b21', 'op': 'private'}

{'origin': 'broadcast', 'trade': {'price_currency': 'EUR', 'trade_type': 'bid', 'price_int': '1094838', 'price': 10.94838, 'primary': 'Y', 'item': 'BTC', 'amount': 29.0911, 'tid': '1358271672595895', 'amount_int': '2909110000', 'date': 1358271672.0, 'type': 'trade', 'properties': 'market,mixed_currency'}, 'private': 'trade', 'channel': 'dbf1dee9-4f2e-4a08-8cb7-748919a71b21', 'op': 'private'}

Are these both valid (as the same trade) and indicative of some kind of automatic currency translation that Mt. Gox is doing?

Thanks!
1511363655
Hero Member
*
Offline Offline

Posts: 1511363655

View Profile Personal Message (Offline)

Ignore
1511363655
Reply with quote  #2

1511363655
Report to moderator
1511363655
Hero Member
*
Offline Offline

Posts: 1511363655

View Profile Personal Message (Offline)

Ignore
1511363655
Reply with quote  #2

1511363655
Report to moderator
1511363655
Hero Member
*
Offline Offline

Posts: 1511363655

View Profile Personal Message (Offline)

Ignore
1511363655
Reply with quote  #2

1511363655
Report to moderator
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511363655
Hero Member
*
Offline Offline

Posts: 1511363655

View Profile Personal Message (Offline)

Ignore
1511363655
Reply with quote  #2

1511363655
Report to moderator
1511363655
Hero Member
*
Offline Offline

Posts: 1511363655

View Profile Personal Message (Offline)

Ignore
1511363655
Reply with quote  #2

1511363655
Report to moderator
1511363655
Hero Member
*
Offline Offline

Posts: 1511363655

View Profile Personal Message (Offline)

Ignore
1511363655
Reply with quote  #2

1511363655
Report to moderator
MagicalTux
VIP
Hero Member
*
Offline Offline

Activity: 608


Working on new MtGox features


View Profile WWW
January 17, 2013, 07:29:07 AM
 #2

Both entries are actually the same trade, as seen from different currencies. This happens when an order hits an open order in another currency. Those trades have the "mixed_currency" flag set.

You can use the "primary" field to differentiate them.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!