Bitcoin Forum
November 01, 2024, 04:03:19 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitstamp API instant/market order method  (Read 2700 times)
MusX (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
September 03, 2013, 11:37:49 AM
 #1

Hi,

Bitstamp API does not offer instant/market order placement through API, only via UI.
I've tried ask support with no success.
Can anybody recommend me the most efficient way to achieve such order placement?

Some possibilities:
1. as on mtgox I tried to place an order with no 'price' argument
 - api call returns error caused by lack of this param
2. buy btc at 999999 price, sell btc at 0.01 price
 - how to calculate the amount to put in POST request?
3. buy at ask depth price, sell at bid depth price
 - orders might be not completed, should be put in loop, can be difficult to achieve when there is lag on market
5. any other way?

Thanks in advance

MusX (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
September 06, 2013, 06:55:53 PM
 #2

I don't believe there is no solution/workaround for that, anybody?

grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1434



View Profile
September 07, 2013, 12:16:03 AM
 #3

2. buy btc at 999999 price, sell btc at 0.01 price
 - how to calculate the amount to put in POST request?
This seems like the best solution. It looks like a cheap hack, but I don't see how it can go wrong.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
MusX (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
September 07, 2013, 07:33:33 AM
Last edit: September 07, 2013, 07:48:58 AM by MusX
 #4

2. buy btc at 999999 price, sell btc at 0.01 price
 - how to calculate the amount to put in POST request?
This seems like the best solution. It looks like a cheap hack, but I don't see how it can go wrong.
yeah but for such price you probably could buy a very small amount of BTC,
if you have 100000 USD you can only place order at 99999 for 0.01 btc, right?
you buy only 0.01, looping again until you sellout all fiat?

xybersurfer
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
October 29, 2014, 11:06:13 AM
 #5

2. buy btc at 999999 price, sell btc at 0.01 price
 - how to calculate the amount to put in POST request?
This seems like the best solution. It looks like a cheap hack, but I don't see how it can go wrong.
what if the order book is empty? (possibly due to a fluke)

MusX (OP)
Full Member
***
Offline Offline

Activity: 175
Merit: 100


View Profile
October 29, 2014, 01:19:52 PM
 #6

"instant order" from definition is order which doesn't care about price, so it will try to buy/sell at any price. It will eat any orders till the order book will be empty, and when it happens it should just place the order without filling it. Not a best solution, but it is the way how instant order works.

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!