Struct coinnect::bitstamp::api::BitstampApi [] [src]

pub struct BitstampApi { /* fields omitted */ }

Methods

impl BitstampApi
[src]

Create a new BitstampApi by providing an API key & API secret

The number of calls in a given period is limited. In order to avoid a ban we limit by default the number of api requests. This function sets or removes the limitation. Burst false implies no block. Burst true implies there is a control over the number of calls allowed to the exchange

Sample output :

{
"BTC_LTC":{
"last":"0.0251","lowestAsk":"0.02589999","highestBid":"0.0251",
"percentChange":"0.02390438","baseVolume":"6.16485315","quoteVolume":"245.82513926"},
"BTC_NXT":{
"last":"0.00005730","lowestAsk":"0.00005710","highestBid":"0.00004903",
"percentChange":"0.16701570","baseVolume":"0.45347489","quoteVolume":"9094"},
... }

Sample output :

{"asks":[[0.00007600,1164],[0.00007620,1300], ... ], "bids":[[0.00006901,200],
[0.00006900,408], ... ], "timestamp": "1234567890"}

Sample output :

[{"date":"2014-02-10 04:23:23","type":"buy","rate":"0.00007600","amount":"140",
"total":"0.01064"},
{"date":"2014-02-10 01:19:37","type":"buy","rate":"0.00007600","amount":"655",
"total":"0.04978"}, ... ]

Returns all of your available balances.

Sample output:

{"BTC":"0.59098578","LTC":"3.31117268", ... }

Add a buy limit order to the exchange limit_price : If the order gets executed, a new sell order will be placed, with "limit_price" as its price. daily_order (Optional) : Opens buy limit order which will be canceled at 0:00 UTC unless it already has been executed. Possible value: True

Add a sell limit order to the exchange limit_price : If the order gets executed, a new sell order will be placed, with "limit_price" as its price. daily_order (Optional) : Opens sell limit order which will be canceled at 0:00 UTC unless it already has been executed. Possible value: True

Add a market buy order to the exchange By placing a market order you acknowledge that the execution of your order depends on the market conditions and that these conditions may be subject to sudden changes that cannot be foreseen.

Add a market sell order to the exchange By placing a market order you acknowledge that the execution of your order depends on the market conditions and that these conditions may be subject to sudden changes that cannot be foreseen.

Trait Implementations

impl Debug for BitstampApi
[src]

Formats the value using the given formatter.

impl ExchangeApi for BitstampApi
[src]

Return a Ticker for the Pair specified.

Return an Orderbook for the specified Pair.

Place an order directly to the exchange. Quantity is in quote currency. So if you want to buy 1 Bitcoin for X€ (pair BTC_EUR), base currency (right member in the pair) is BTC and quote/counter currency is BTC (left member in the pair). So quantity = 1. Read more

Return the balances for each currency on the account