bitbankapi class : Status() method

Description

Gets exchange status.

Syntax

bitbankapiInstance.Status()

Arguments

None.

Return value

ClassDescription
bitbankresResponse to request, with JSON-text.

Sample code

1:

bitbankapi bitbankapiIns = new bitbankapi();

2:

bitbankres bitbankresIns = bitbankapiIns.Status();

3:

string jsonStr = bitbankresIns.Result;

Example for JSON-text

{"success":1,"data":{"statuses":[{"pair":"btc_jpy","status":"NORMAL","min_amount":"0.0001"},{"pair":"xrp_jpy","status":"NORMAL","min_amount":"0.0001"},{"pair":"ltc_btc","status":"NORMAL","min_amount":"0.0001"},{"pair":"eth_btc","status":"NORMAL","min_amount":"0.0001"},{"pair":"mona_jpy","status":"NORMAL","min_amount":"0.0001"},{"pair":"mona_btc","status":"NORMAL","min_amount":"0.0010"},{"pair":"bcc_jpy","status":"NORMAL","min_amount":"0.0001"},{"pair":"bcc_btc","status":"NORMAL","min_amount":"0.0001"}]}}

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 © Cooker All rights reserved.