zaifapi クラス : Currencies(string) メソッド
説明
通貨情報を取得します。
構文
zaifapiInstance.Currencies(string currencyName)
引数
クラス | 名前 | 説明 |
string | currencyName | 通貨名 |
返り値
クラス | 説明 |
zaifres | 要求に対する応答、JSON文字列を持つ。 |
サンプルコード
1: | zaifapi zaifapiIns = new zaifapi(); |
2: | zaifres zaifresIns = zaifapiIns.Currencies("btc"); |
3: | string jsonStr = zaifresIns.Result; |
JSON-text 例
currencyName : "all" |
[{"id": 75, "token_id": 71, "name": "TSUKASA", "is_token": true}, {"id": 110, "token_id": 106, "name": "CHIKARINBG", "is_token": true}, {"id": 14, "token_id": 10, "name": "MAGATAMATQ", "is_token": true}, {"id": 72, "token_id": 68, "name": "CHIKARIN", "is_token": true}, {"id": 104, "token_id": 100, "name": "XACFIVE", "is_token": true}, {"id": 57, "token_id": 53, "name": "MAGATAMABLSX", "is_token": true}, {"id": 84, "token_id": 80, "name": "DJASANYANVIX", "is_token": true}, {"id": 74, "token_id": 70, "name": "SATOAYAKA", "is_token": true}, {"id": 82, "token_id": 78, "name": "ICHARLOTTE", "is_token": true}, {"id": 76, "token_id": 72, "name": "KAORI", "is_token": true}, {"id": 139, "token_id": null, "name": "ETH", "is_token": false}, {"id": 46, "token_id": 42, "name": "MAGATAMATQTW", "is_token": true}, {"id": 51, "token_id": 47, "name": "MAGATAMATQSV", "is_token": true}, {"id": 97, "token_id": 93, "name": "LEENA", "is_token": true}, {"id": 80, "token_id": 76, "name": "HINANOMAI", "is_token": true}, {"id": 32, "token_id": 28, "name": "MAGATAMAVTTW", "is_token": true}, {"id": 40, "token_id": 36, "name": "MAGATAMAGNTH", "is_token": true}, {"id": 129, "token_id": 123, "name": "NCXC", "is_token": true}, {"id": 30, "token_id": 26, "name": "MAGATAMAYLSV", "is_token": true}, {"id": 117, "token_id": 113, "name": "ICHARLOTTEBG", "is_token": true}, {"id": 35, "token_id": 31, "name": "MAGATAMAVTFV", "is_token": true}, {"id": 47, "token_id": 43, "name": "MAGATAMATQTH", "is_token": true}, {"id": 24, "token_id": 20, "name": "MAGATAMAYLON", "is_token": true}, {"id": 89, "token_id": 85, "name": "RISAVIX", "is_token": true}, {"id": 17, "token_id": 13, "name": "MAGATAMARDON", "is_token": true}, {"id": 19, "token_id": 15, "name": "MAGATAMARDTH", "is_token": true}, {"id": 131, "token_id": 125, "name": "YOGIBOGOCPTW", "is_token": true}, {"id": 18, "token_id": 14, "name": "MAGATAMARDTW", "is_token": true}, {"id": 44, "token_id": 40, "name": "MAGATAMAGNSV", "is_token": true}, {"id": 109, "token_id": 105, "name": "KAORIBG", "is_token": true}, {"id": 27, "token_id": 23, "name": "MAGATAMAYLFR", "is_token": true}, {"id": 33, "token_id": 29, "name": "MAGATAMAVTTH", "is_token": true}, {"id": 8, "token_id": 4, "name": "SJCX", "is_token": true}, {"id": 43, "token_id": 39, "name": "MAGATAMAGNSX", "is_token": true}, {"id": 3, "token_id": null, "name": "jpy", "is_token": false}, {"id": 115, "token_id": 111, "name": "MIZUKIBG", "is_token": true}, {"id": 112, "token_id": 108, "name": "SATOAYAKABG", "is_token": true}, {"id": 136, "token_id": 130, "name": "MAGATAMABZ", "is_token": true}, {"id": 88, "token_id": 84, "name": "SIRAHOSIVIX", "is_token": true}, {"id": 52, "token_id": 48, "name": "MAGATAMABLON", "is_token": true}, {"id": 116, "token_id": 112, "name": "SHIRAHOSHIBG", "is_token": true}, {"id": 96, "token_id": 92, "name": "SHIMARENA", "is_token": true}, {"id": 122, "token_id": 118, "name": "YAMAGUCHIABG", "is_token": true}, {"id": 111, "token_id": 107, "name": "SANOMAYABG", "is_token": true}, {"id": 56, "token_id": 52, "name": "MAGATAMABLFV", "is_token": true}, {"id": 11, "token_id": 7, "name": "MAGATAMAYL", "is_token": true}, {"id": 31, "token_id": 27, "name": "MAGATAMAVTON", "is_token": true}, {"id": 114, "token_id": 110, "name": "TSUKASABG", "is_token": true}, {"id": 86, "token_id": 82, "name": "TSUKASAVIX", "is_token": true}, {"id": 64, "token_id": 60, "name": "MAGATAMAWTSX", "is_token": true}, {"id": 71, "token_id": 67, "name": "DJASANYAN", "is_token": true}, {"id": 100, "token_id": 96, "name": "XACONE", "is_token": true}, {"id": 77, "token_id": 73, "name": "MIZUKI", "is_token": true}, {"id": 37, "token_id": 33, "name": "MAGATAMAVTSV", "is_token": true}, {"id": 85, "token_id": 81, "name": "CHIKARINVIX", "is_token": true}, {"id": 70, "token_id": 66, "name": "PACHI", "is_token": true}, {"id": 7, "token_id": 3, "name": "BITCRYSTALS", "is_token": true}, {"id": 28, "token_id": 24, "name": "MAGATAMAYLFV", "is_token": true}, {"id": 130, "token_id": 124, "name": "YOGIBOGOCPON", "is_token": true}, {"id": 16, "token_id": 12, "name": "MAGATAMAWT", "is_token": true}, {"id": 66, "token_id": 62, "name": "HYOU", "is_token": true}, {"id": 99, "token_id": 95, "name": "CICC", "is_token": true}, {"id": 98, "token_id": 94, "name": "ITSUKI", "is_token": true}, {"id": 55, "token_id": 51, "name": "MAGATAMABLFR", "is_token": true}, {"id": 101, "token_id": 97, "name": "XACTWO", "is_token": true}, {"id": 23, "token_id": 19, "name": "MAGATAMARDSV", "is_token": true}, {"id": 73, "token_id": 69, "name": "SANOMAYA", "is_token": true}, {"id": 36, "token_id": 32, "name": "MAGATAMAVTSX", "is_token": true}, {"id": 41, "token_id": 37, "name": "MAGATAMAGNFR", "is_token": true}, {"id": 132, "token_id": 126, "name": "YOGIBOGOCPTH", "is_token": true}, {"id": 20, "token_id": 16, "name": "MAGATAMARDFR", "is_token": true}, {"id": 68, "token_id": 64, "name": "TOREKABUOPT", "is_token": true}, {"id": 6, "token_id": 2, "name": "XCP", "is_token": true}, {"id": 65, "token_id": 61, "name": "MAGATAMAWTSV", "is_token": true}, {"id": 83, "token_id": 79, "name": "SANOMAYAVIX", "is_token": true}, {"id": 58, "token_id": 54, "name": "MAGATAMABLSV", "is_token": true}, {"id": 54, "token_id": 50, "name": "MAGATAMABLTH", "is_token": true}, {"id": 125, "token_id": 121, "name": "ITSUKIBG", "is_token": true}, {"id": 140, "token_id": null, "name": "ERC20.CMS", "is_token": false}, {"id": 123, "token_id": 119, "name": "SHIMARENABG", "is_token": true}, {"id": 95, "token_id": 91, "name": "RUMIRUMI", "is_token": true}, {"id": 22, "token_id": 18, "name": "MAGATAMARDSX", "is_token": true}, {"id": 5, "token_id": 1, "name": "ZAIF", "is_token": true}, {"id": 93, "token_id": 89, "name": "KINOKOUSAKA", "is_token": true}, {"id": 120, "token_id": 116, "name": "RURUBG", "is_token": true}, {"id": 50, "token_id": 46, "name": "MAGATAMATQSX", "is_token": true}, {"id": 38, "token_id": 34, "name": "MAGATAMAGNON", "is_token": true}, {"id": 69, "token_id": 65, "name": "NEMCARD", "is_token": true}, {"id": 61, "token_id": 57, "name": "MAGATAMAWTTH", "is_token": true}, {"id": 48, "token_id": 44, "name": "MAGATAMATQFR", "is_token": true}, {"id": 92, "token_id": 88, "name": "PEPECASH", "is_token": true}, {"id": 138, "token_id": null, "name": "BCH", "is_token": false}, {"id": 87, "token_id": 83, "name": "MIZUKIVIX", "is_token": true}, {"id": 34, "token_id": 30, "name": "MAGATAMAVTFR", "is_token": true}, {"id": 124, "token_id": 120, "name": "RUMIRUMIBG", "is_token": true}, {"id": 13, "token_id": 9, "name": "MAGATAMAGN", "is_token": true}, {"id": 2, "token_id": null, "name": "xem", "is_token": false}, {"id": 118, "token_id": 114, "name": "MAMICHANBG", "is_token": true}, {"id": 9, "token_id": 5, "name": "MAGATAMAMIJN", "is_token": true}, {"id": 135, "token_id": 129, "name": "YOGIBOGOCPSX", "is_token": true}, {"id": 108, "token_id": 104, "name": "XACNINE", "is_token": true}, {"id": 39, "token_id": 35, "name": "MAGATAMAGNTW", "is_token": true}, {"id": 1, "token_id": null, "name": "btc", "is_token": false}, {"id": 29, "token_id": 25, "name": "MAGATAMAYLSX", "is_token": true}, {"id": 79, "token_id": 75, "name": "MAMICHANNEL", "is_token": true}, {"id": 42, "token_id": 38, "name": "MAGATAMAGNFV", "is_token": true}, {"id": 134, "token_id": 128, "name": "YOGIBOGOCPFV", "is_token": true}, {"id": 53, "token_id": 49, "name": "MAGATAMABLTW", "is_token": true}, {"id": 113, "token_id": 109, "name": "DJASANYANBG", "is_token": true}, {"id": 62, "token_id": 58, "name": "MAGATAMAWTFR", "is_token": true}, {"id": 102, "token_id": 98, "name": "XACTHREE", "is_token": true}, {"id": 49, "token_id": 45, "name": "MAGATAMATQFV", "is_token": true}, {"id": 60, "token_id": 56, "name": "MAGATAMAWTTW", "is_token": true}, {"id": 137, "token_id": 131, "name": "JPYZ", "is_token": true}, {"id": 94, "token_id": 90, "name": "YAMAGUCHIA", "is_token": true}, {"id": 126, "token_id": 122, "name": "LEENABG", "is_token": true}, {"id": 107, "token_id": 103, "name": "XACEIGHT", "is_token": true}, {"id": 25, "token_id": 21, "name": "MAGATAMAYLTW", "is_token": true}, {"id": 119, "token_id": 115, "name": "HINANOMAIBG", "is_token": true}, {"id": 133, "token_id": 127, "name": "YOGIBOGOCPFR", "is_token": true}, {"id": 45, "token_id": 41, "name": "MAGATAMATQON", "is_token": true}, {"id": 78, "token_id": 74, "name": "SHIRAHOSHI", "is_token": true}, {"id": 4, "token_id": null, "name": "mona", "is_token": false}, {"id": 106, "token_id": 102, "name": "XACSEVEN", "is_token": true}, {"id": 15, "token_id": 11, "name": "MAGATAMABL", "is_token": true}, {"id": 91, "token_id": 87, "name": "BITGIRLSII", "is_token": true}, {"id": 121, "token_id": 117, "name": "KINOBG", "is_token": true}, {"id": 63, "token_id": 59, "name": "MAGATAMAWTFV", "is_token": true}, {"id": 81, "token_id": 77, "name": "RURU", "is_token": true}, {"id": 26, "token_id": 22, "name": "MAGATAMAYLTH", "is_token": true}, {"id": 90, "token_id": 86, "name": "BITGIRLSI", "is_token": true}, {"id": 67, "token_id": 63, "name": "FSCC", "is_token": true}, {"id": 105, "token_id": 101, "name": "XACSIX", "is_token": true}, {"id": 12, "token_id": 8, "name": "MAGATAMAVT", "is_token": true}, {"id": 10, "token_id": 6, "name": "MAGATAMARD", "is_token": true}, {"id": 59, "token_id": 55, "name": "MAGATAMAWTON", "is_token": true}, {"id": 141, "token_id": null, "name": "MOSAIC.CMS", "is_token": false}, {"id": 21, "token_id": 17, "name": "MAGATAMARDFV", "is_token": true}, {"id": 103, "token_id": 99, "name": "XACFOUR", "is_token": true}] |
currencyName : "btc" |
[{"id": 1, "token_id": null, "name": "btc", "is_token": false}] |
注意
現物公開APIです。API キーと秘密キーを設定しなくても情報を取得できます。
引数に "all" を指定した場合、有効な全ての通貨情報が返ります。
引数に有効な通貨名を指定した場合、その通貨の情報のみが返ります。
要求に対する応答として zaifres クラスのインスタンスが返ります。このインスタンスが応答の結果の JSON-text を保持しています。
引数が有効でない場合、以下の JSON-text が返ります。
[] (空の JSON-array)
API エラーが発生した場合、以下の様な JSON-text が返ります。
{"error": "..."}
"error" は、それぞれの API エラーで異なります。
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" は、それぞれの例外で異なります。