Bitstamp API - LabMazurokCom/Blockchain GitHub Wiki
Intro
Website: https://www.bitstamp.net/
Documentation: https://www.bitstamp.net/api/
Limits: 600 requests per 10 minutes.
Fee used in bot: 0.25% (taker fee for monthly volume less than 20K USD).
Order book
https://www.bitstamp.net/api/v2/order_book/btcusd/
Response:
{
'timestamp': '1523543859',
'bids': [
['7679.39', '1.00000000'],
['7678.69', '3.29966991'],
...
],
'asks': [
['7684.90', '0.94800000'],
['7685.00', '1.81480172'],
...
]
}
Ticker
https://www.bitstamp.net/api/v2/ticker/btcusd
Response:
{
'high': '8069.34',
'last': '7675.00',
'timestamp': '1523543610',
'bid': '7675.00',
'vwap': '7369.00',
'volume': '15671.15645338',
'low': '6758.45',
'ask': '7675.01',
'open': '6940.94'
}
Field | Meaning |
---|---|
last | Last BTC price |
high | Last 24 hours price high |
low | Last 24 hours price low |
vwap | Last 24 hours volume weighted average price |
volume | Last 24 hours volume |
bid | Highest buy order |
ask | Lowest sell order |
timestamp | Unix timestamp date and time |
open | First price of the day |
Order types
Limit order
Limit order gives you the power to set a specific price at which you would like to buy or sell the desired amount of cryptocurrency.
Note: If the market is very volatile, your limit order may not be carried out in full. If your desired amount of cryptocurrency cannot be purchased under the set price, only a part of your order will be carried out (for example, if you want to buy 100 BTC, but the market price only drops to your chosen value for such a short time that just 80 BTC is available under the conditions of your limit order).
Optional parameters for limit orders
Limit order can be daily, which means order will be canceled at 0:00 UTC unless it already has been executed.
Limit order can be IOS (Immediate-Or-Cancel), which means order must be executed immediately. Any portion of an IOC order that cannot be filled immediately will be cancelled.
When placing a limit order you are now able to set a consecutive buy/sell order at a price at which you wish to buy/sell after the first order is filled.
Market order
A market order is an order type that enables you to buy or sell at the best available market price. Using this order type, you are able to express the amount of the cryptocurrency you wish to buy or sell.
Instant order
An instant order is an order type, which executes immediately under the current price on the market.
Order limits
Minimal amount - $5.00
Maximal price - must not exceed 20% of current market price
Private API requests
ID verification is required