bitbankapi クラス : Pairs() メソッド

説明

銘柄詳細一覧を取得します。

構文

bitbankapiInstance.Pairs()

引数

無し。

返り値

クラス説明
bitbankres要求に対する応答、JSON文字列を持つ。

サンプルコード

1:

bitbankapi bitbankapiIns = new bitbankapi();

2:

bitbankres bitbankresIns = bitbankapiIns.Pairs();

3:

string jsonStr = bitbankresIns.Result;

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}]}}

注意

公開APIです。API キーと秘密キーを設定しなくても情報を取得できます。

要求に対する応答として bitbankres クラスのインスタンスが返ります。このインスタンスが応答の結果の JSON-text を保持しています。

HTTP エラーが発生した場合、以下の様な JSON-text が返ります。

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

"statuscode" と "message" は、それぞれの HTTP エラーで異なります。

要求がタイムアウトした場合、以下の JSON-text が返ります。

{"success": -1001,"error": { "typename" : "TaskCanceledException", "message": "タスクが取り消されました。"}}

その他の例外が発生して要求が失敗した場合、以下の様な JSON-text が返ります。

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

"typename" と "message" は、それぞれの例外で異なります。

参照リンク

Copyright © Cooker All rights reserved.