Bitcoin Forum
December 17, 2017, 06:07:34 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitstamp API instant/market order method  (Read 2589 times)
MusX
Full Member
***
Offline Offline

Activity: 175


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

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513534054
Hero Member
*
Offline Offline

Posts: 1513534054

View Profile Personal Message (Offline)

Ignore
1513534054
Reply with quote  #2

1513534054
Report to moderator
1513534054
Hero Member
*
Offline Offline

Posts: 1513534054

View Profile Personal Message (Offline)

Ignore
1513534054
Reply with quote  #2

1513534054
Report to moderator
1513534054
Hero Member
*
Offline Offline

Posts: 1513534054

View Profile Personal Message (Offline)

Ignore
1513534054
Reply with quote  #2

1513534054
Report to moderator
MusX
Full Member
***
Offline Offline

Activity: 175


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

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

grue
Global Moderator
Legendary
*
Offline Offline

Activity: 2058



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.

Tired of annoying signature ads? Ad block for signatures
MusX
Full Member
***
Offline Offline

Activity: 175


View Profile
September 07, 2013, 07:33:33 AM
 #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: 61


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
Full Member
***
Offline Offline

Activity: 175


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:  

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!