API Bitstamp

Bitstamp

 

Bitstamp is a bitcoin exchange based in Luxembourg. It allows trading between USD currency and bitcoin cryptocurrency. It allows USD, EUR, bitcoin, litecoin, ethereum, ripple or bitcoin cash deposits and withdrawals.

 

 

 

Configuration

Private API requires to get create an API from your Bitstamp account. Once you've your API keys, configure these keys in the following properties:

 

 

 

WebSocket Public Methods

SubscribeLiveTicker: get live trades from currency selected. JSON data:

 

Property Description
id Trade unique ID.
amount Trade amount.
amount_str Trade amount represented in string format.
price Trade price.
price_str Trade price represented in string format.
type Trade type (0 - buy; 1 - sell).
timestamp Trade timestamp.
microtimestamp Trade microtimestamp.
buy_order_id Trade buy order ID.
sell_order_id Trade sell order ID.

 

 

 

SubscribeLiveOrders: get live orders from currency selected. JSON data:

 

Property Description
id Order ID.
amount Order amount.
amount_str Order amount represented in string format.
price Order price.
price_str Order price represented in string format.
order_type Order type (0 - buy; 1 - sell).
datetime Order datetime.
microtimestamp Order action timestamp represented in microseconds.

 

 

 

SubscribeLiveOrderBook: get live order book from currency selected. JSON data:

 

Property Description
bids List of top 100 bids.
asks List of top 100 asks.
timestamp Order book timestamp.
microtimestamp Order book microtimestamp.

 

 

 

SubscribeLiveDetailOrderBook: get live detail order book from currency selected. JSON data:

 

Property Description
bids List of top 100 bids [price, amount, order id].
asks List of top 100 asks [price, amount, order id].
timestamp Order book timestamp.
microtimestamp Order book microtimestamp.

 

 

 

SubscribeLiveFullOrderBook: get live full order book from currency selected. JSON data:

 

Property Description
bids List of changed bids since last broadcast.
asks List of changed asks since last broadcast.
timestamp Order book timestamp.
microtimestamp Order book microtimestamp.

 

 

WebSocket Private Methods

 

SubscribeMyOrders: get updates about the orders sent. JSON data:

 

Property Description
id Order ID.
id_str Order ID represented in string format.
client_order_id Client order ID (if used when placing order).
amount Order amount.
amount_str Order amount represented in string format.
price Order price.
price_str Order price represented in string format.
order_type Order type (0 - buy, 1 - sell).
datetime Order datetime.
microtimestamp Order action timestamp represented in microseconds.

 

 

 

SubscribeMyTrades: get updates about the trades. JSON data:

 

Property Description
id Trade ID.
order_id Order ID associated with the trade.
client_order_id Client order ID associated with the trade.
amount Trade amount.
price Trade price.
fee Trade fee.
side Trade side (buy or sell).
microtimestamp Trade timestamp represented in microseconds.

 

 

 

REST API Public Methods

Tickers

 

 

 

Order Book

 

 

 

Transactions

 

 

 

Market Info

 

 

 

 

REST API Private Methods

Account Balance

 

 

Orders

 

 

Withdrawals