Bitcoin Forum
May 04, 2024, 01:16:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PSA: Bitstamp order matching engine is broken.  (Read 2071 times)
Dyaheon (OP)
Member
**
Offline Offline

Activity: 121
Merit: 10


View Profile
April 28, 2013, 06:13:06 PM
 #1

I submitted a ticket about this a couple of weeks ago, they said they're working on it.

However, they still haven't managed to fix the bug.



See those 3 red spikes and 1 green spike? They're not errors in bitcoinity, but trades going through at around +-10% from the spot price. Note that there is are no volume spikes; the orderbook obviously wasn't cleared, it's just one or a few trades.

It's pretty rare and I don't know exactly what triggers it, but it's rather serious. Be careful when doing limit orders in bitstamp, or your trade might go through at a bad price.
1714828602
Hero Member
*
Offline Offline

Posts: 1714828602

View Profile Personal Message (Offline)

Ignore
1714828602
Reply with quote  #2

1714828602
Report to moderator
1714828602
Hero Member
*
Offline Offline

Posts: 1714828602

View Profile Personal Message (Offline)

Ignore
1714828602
Reply with quote  #2

1714828602
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714828602
Hero Member
*
Offline Offline

Posts: 1714828602

View Profile Personal Message (Offline)

Ignore
1714828602
Reply with quote  #2

1714828602
Report to moderator
1714828602
Hero Member
*
Offline Offline

Posts: 1714828602

View Profile Personal Message (Offline)

Ignore
1714828602
Reply with quote  #2

1714828602
Report to moderator
kakobrekla
Hero Member
*****
Offline Offline

Activity: 714
Merit: 500


Psi laju, karavani prolaze.


View Profile
April 28, 2013, 06:47:36 PM
 #2

There are more bugs than this one. The most notable is the stealing via rounding fees. I told them about it a year ago, was said they gonna fix, but why fix money making bug, right? Then again, what can you expect from kids with css skills that are learning their entrepreneurial skills on your teeth.

TimJBenham
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
April 29, 2013, 01:26:01 AM
 #3

I submitted a ticket about this a couple of weeks ago, they said they're working on it.

However, they still haven't managed to fix the bug.

See those 3 red spikes and 1 green spike? They're not errors in bitcoinity, but trades going through at around +-10% from the spot price. Note that there is are no volume spikes; the orderbook obviously wasn't cleared, it's just one or a few trades.

It's pretty rare and I don't know exactly what triggers it, but it's rather serious. Be careful when doing limit orders in bitstamp, or your trade might go through at a bad price.

I've pointed that out already. It is not safe to simulate a market order by setting a low or high limit. There is a chance you will get matched at your limit even if there are hundreds of BTC in the order book at better prices.

The order matching algorithm is quite simple and it is a wonder that they could implement it wrongly.

You are a warlord in the outskirts of the known world struggling to establish a kingdom in the wild lands.
keatonatron
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


Jack of oh so many trades.


View Profile
April 29, 2013, 04:18:20 AM
 #4

Do you think this happens when people put in an extremely high/low price when placing their order just to ensure it gets filled asap?

For example, I have noticed when watching the order page that sometimes an order will appear at the top of the buy list for $40 more than the cheapest sell order and it stays there until I refresh the page.

1KEATSvAhbB7yj2baLB5xkyJSnkfqPGAqk
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1330



View Profile
April 29, 2013, 04:31:20 AM
 #5

See those 3 red spikes and 1 green spike? They're not errors in bitcoinity, but trades going through at around +-10% from the spot price. Note that there is are no volume spikes; the orderbook obviously wasn't cleared, it's just one or a few trades.

It looks like a lot more than 10% error.

I remember britcoin (remember them?) used to have the same problem, a couple of years ago.  I contacted them about it a couple of times without it being fixed, then fixed it myself and sent them a patch.  They sent me 10 BTC for doing so (which was probably worth about $50 total at the time).

I wonder if bitstamp uses the same buggy code.  Is bitstamp open source software?  I've not looked into that exchange much at all.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
TimJBenham
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
April 29, 2013, 04:40:09 AM
 #6

See those 3 red spikes and 1 green spike? They're not errors in bitcoinity, but trades going through at around +-10% from the spot price. Note that there is are no volume spikes; the orderbook obviously wasn't cleared, it's just one or a few trades.

It looks like a lot more than 10% error.

I remember britcoin (remember them?) used to have the same problem, a couple of years ago.  I contacted them about it a couple of times without it being fixed, then fixed it myself and sent them a patch.  They sent me 10 BTC for doing so (which was probably worth about $50 total at the time).

I wonder if bitstamp uses the same buggy code.  Is bitstamp open source software?  I've not looked into that exchange much at all.

I don't think Bitstamp is open source. I'd be happy to rewrite their matching code for 10 BTC! Though I'd probably have to learn some execrable scripting language like PHP. Noone under the age of 30 seems to know how to code in a proper language like C or FORTRAN.

You are a warlord in the outskirts of the known world struggling to establish a kingdom in the wild lands.
lucif
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


Clown prophet


View Profile
April 29, 2013, 07:17:29 AM
 #7

This is not normal

lucif
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


Clown prophet


View Profile
April 29, 2013, 09:09:37 AM
 #8

Okay, this is really impossible within such market depth! Time is GMT+3

Quote
bitstampUSD 2013-04-29 12:04:58 137.86 3.03
bitstampUSD 2013-04-29 12:05:02 137.87 0.39
bitstampUSD 2013-04-29 12:05:02 137.87 0.99
bitstampUSD 2013-04-29 12:05:02 137.87 0.99
bitstampUSD 2013-04-29 12:05:02 137.87 0.99
bitstampUSD 2013-04-29 12:05:02 137.87 1.0
bitstampUSD 2013-04-29 12:05:02 137.87 8.9
bitstampUSD 2013-04-29 12:05:02 137.9 1.02
bitstampUSD 2013-04-29 12:05:03 137.9 0.83
bitstampUSD 2013-04-29 12:05:03 137.91 0.99
bitstampUSD 2013-04-29 12:05:03 137.92 0.99
bitstampUSD 2013-04-29 12:05:03 137.92 0.99
bitstampUSD 2013-04-29 12:05:03 137.93 5.0
bitstampUSD 2013-04-29 12:05:03 137.96 0.99
bitstampUSD 2013-04-29 12:05:03 137.96 0.99
bitstampUSD 2013-04-29 12:05:04 137.97 0.98
bitstampUSD 2013-04-29 12:05:04 137.97 0.09
bitstampUSD 2013-04-29 12:05:04 137.97 0.99
bitstampUSD 2013-04-29 12:05:04 137.97 0.99
bitstampUSD 2013-04-29 12:05:04 137.97 0.99
bitstampUSD 2013-04-29 12:05:04 137.97 0.87
bitstampUSD 2013-04-29 12:05:09 151.65 0.5
bitstampUSD 2013-04-29 12:05:24 137.82 1.0
bitstampUSD 2013-04-29 12:05:30 137.82 0.08
bitstampUSD 2013-04-29 12:05:38 137.82 0.12
bitstampUSD 2013-04-29 12:05:42 137.82 0.76



oda.krell
Legendary
*
Offline Offline

Activity: 1470
Merit: 1007



View Profile
April 29, 2013, 03:48:37 PM
 #9

Note 1: I'm trading on bitstamp, and have been quite happy with the exchange so far.

Note 2: bitstamp is currently doing some maintenance. Maybe they'll fix those issues, but even if so, it would be nice to get a response from them in this thread.

A few days ago I opened a thread myself in which I asked hazek (forum member and bitstamp employee? owner?) if he is aware of the issues with the bitstamp order matching algorithm, and the generally quite lacking trading interface. Here's the thread. Hazek responded, and talked about increasing the "capacity of their servers" but didn't address my other points.

So, one more time.

bitstamp/hazek, are you aware of:

(a) the apparent problems with order matching on bitstamp, as shown in the charts above

and can you

(b) explain what is the cause of those strange orders. Is it buggy code, or not a bug per se but an artifact of the way your matching algorithm works. If the latter, please explain to us how exactly it works so we at least can avoid such bad orders.



Not sure which Bitcoin wallet you should use? Get Electrum!
Electrum is an open-source lightweight client: fast, user friendly, and 100% secure.
Download the source or executables for Windows/OSX/Linux/Android from, and only from, the official Electrum homepage.
oda.krell
Legendary
*
Offline Offline

Activity: 1470
Merit: 1007



View Profile
April 29, 2013, 03:51:24 PM
 #10

See those 3 red spikes and 1 green spike? They're not errors in bitcoinity, but trades going through at around +-10% from the spot price. Note that there is are no volume spikes; the orderbook obviously wasn't cleared, it's just one or a few trades.

It looks like a lot more than 10% error.

I remember britcoin (remember them?) used to have the same problem, a couple of years ago.  I contacted them about it a couple of times without it being fixed, then fixed it myself and sent them a patch.  They sent me 10 BTC for doing so (which was probably worth about $50 total at the time).

I wonder if bitstamp uses the same buggy code.  Is bitstamp open source software?  I've not looked into that exchange much at all.

1) Looks about 10% to me, e.g. 151/137 ~= 1.102

2) I just remember btc-24 used to have similar inexplicable spikes. And we all know how that story ended :/

Not sure which Bitcoin wallet you should use? Get Electrum!
Electrum is an open-source lightweight client: fast, user friendly, and 100% secure.
Download the source or executables for Windows/OSX/Linux/Android from, and only from, the official Electrum homepage.
keatonatron
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


Jack of oh so many trades.


View Profile
April 29, 2013, 04:15:12 PM
 #11

I just remember btc-24 used to have similar inexplicable spikes. And we all know how that story ended :/

With their bank account being closed? I don't see how that's related  Grin

1KEATSvAhbB7yj2baLB5xkyJSnkfqPGAqk
oda.krell
Legendary
*
Offline Offline

Activity: 1470
Merit: 1007



View Profile
April 29, 2013, 04:57:31 PM
 #12

I just remember btc-24 used to have similar inexplicable spikes. And we all know how that story ended :/

With their bank account being closed? I don't see how that's related  ;D

The btc-24 story is probably a bit more complex than "German government closed their accounts", isn't it. Last time I checked the relevant threads, the consensus seemed to be that some disgruntled user(s) probably started pressing charges against Simon, which brought the full might of the German Staatsanwaltschaft on poor Simon's ass :P And if I understood correctly, there's a good chance those users were disgruntled in the first place because of irregularities with btc-24's trade engine.

Not sure which Bitcoin wallet you should use? Get Electrum!
Electrum is an open-source lightweight client: fast, user friendly, and 100% secure.
Download the source or executables for Windows/OSX/Linux/Android from, and only from, the official Electrum homepage.
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1330



View Profile
April 29, 2013, 09:24:56 PM
 #13

It looks like a lot more than 10% error.

1) Looks about 10% to me, e.g. 151/137 ~= 1.102

Ha, yes.  I was looking at the labels on the left of the OP's chart.  They're for the volume bars, not the price...

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
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!