Home Notices Documents Classes Download Others Rice
Classes  >  bitbankapi  >  Pairs()
bitbankapi class : Pairs() method

Description

Gets all pairs info.

Syntax

bitbankapiInstance.Pairs()

Arguments

None.

Return value

ClassDescription
bitbankresResponse to request, with JSON-text.

Sample code

1:

bitbankapi bitbankapiIns = new bitbankapi();

2:

bitbankres bitbankresIns = bitbankapiIns.Pairs();

3:

string jsonStr = bitbankresIns.Result;

Example for JSON-text

{"success":1,"data":{"pairs":[{"name":"btc_jpy","base_asset":"btc","quote_asset":"jpy","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.0001","limit_max_amount":"1000","market_max_amount":"10","market_allowance_rate":"0.2","price_digits":0,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false},{"name":"xrp_jpy","base_asset":"xrp","quote_asset":"jpy","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.0001","limit_max_amount":"5000000","market_max_amount":"100000","market_allowance_rate":"0.3","price_digits":3,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false},{"name":"ltc_btc","base_asset":"ltc","quote_asset":"btc","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.0001","limit_max_amount":"1000","market_max_amount":"100","market_allowance_rate":"0.3","price_digits":8,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false},{"name":"eth_btc","base_asset":"eth","quote_asset":"btc","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.0001","limit_max_amount":"1000","market_max_amount":"100","market_allowance_rate":"0.3","price_digits":8,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false},{"name":"mona_jpy","base_asset":"mona","quote_asset":"jpy","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.0001","limit_max_amount":"1000000","market_max_amount":"10000","market_allowance_rate":"0.3","price_digits":3,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false},{"name":"mona_btc","base_asset":"mona","quote_asset":"btc","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.001","limit_max_amount":"1000000","market_max_amount":"10000","market_allowance_rate":"0.3","price_digits":8,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false},{"name":"bcc_jpy","base_asset":"bcc","quote_asset":"jpy","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.0001","limit_max_amount":"1000","market_max_amount":"100","market_allowance_rate":"0.3","price_digits":0,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false},{"name":"bcc_btc","base_asset":"bcc","quote_asset":"btc","maker_fee_rate_base":"0","taker_fee_rate_base":"0","maker_fee_rate_quote":"-0.0002","taker_fee_rate_quote":"0.0012","unit_amount":"0.0001","limit_max_amount":"1000","market_max_amount":"100","market_allowance_rate":"0.3","price_digits":8,"amount_digits":4,"is_enabled":true,"stop_order":false,"stop_order_and_cancel":false}]}}

Notes

Public API. API key and secret key are unnecessary.

An instance of the bitbankres class is returned as the response to the request. This instance holds the JSON-text of the result of the response.

If an HTTP error occurs, the following JSON-text will be returned.

{"success": -1000,"error": { "statuscode" : 404, "message": "Not Found"}}

"statuscode" and "message" are different for each HTTP error.

If the request times out, the following JSON-text is returned.

{"success": -1001,"error": { "typename" : "TaskCanceledException", "message": "A task was cancelled."}}

If the request fails due to other exceptions, the following JSON-text will be returned.

{"success": -1002,"error": { "typename" : "...", "message": "..."}}

"typename" and "message" are different for each exception.

Links for reference

Copyright © Rice All rights reserved.