For information on changes for our US clients, please visit our Support Center article.

Поиск
Символы API и тикеры

Символы

Наши API-интерфейсы REST и WebSocket используют несколько различающиеся символы для представления одних и тех же базовых рынков (валютных пар), поэтому иногда при переходе из одной версии в другую эти символы необходимо расшифровывать.
Конечные точки REST Assets и AssetPairs могут использоваться для получения списка всех доступных валют и валютных пар (рынков), а также всех возможных версий символов для каждого рынка.
Например, при обращении к конечной точке REST Assets https://api.kraken.com/0/public/Assets может быть получен ответ, аналогичный следующему:
{"error":[],"result":{...{"aclass":"currency","altname":"SRM","decimals":8,"display_decimals":5},"STORJ":{"aclass":"currency","altname":"STORJ","decimals":10,"display_decimals":5},"SUSHI":{"aclass":"currency","altname":"SUSHI","decimals":10,"display_decimals":5},"TBTC":{"aclass":"currency","altname":"TBTC","decimals":10,"display_decimals":5},"TRX":{"aclass":"currency","altname":"TRX","decimals":8,"display_decimals":6},"UNI":{"aclass":"currency","altname":"UNI","decimals":10,"display_decimals":5},"USD.HOLD":{"aclass":"currency","altname":"USD.HOLD","decimals":4,"display_decimals":2},"USD.M":{"aclass":"currency","altname":"USD.M","decimals":4,"display_decimals":4},"USDC":{"aclass":"currency","altname":"USDC","decimals":8,"display_decimals":4},"USDT":{"aclass":"currency","altname":"USDT","decimals":8,"display_decimals":4},"WAVES":{"aclass":"currency","altname":"WAVES","decimals":10,"display_decimals":5},"WBTC":{"aclass":"currency","altname":"WBTC","decimals":10,"display_decimals":5},"XBT.M":{"aclass":"currency","altname":"XBT.M","decimals":10,"display_decimals":8},"XETC":{"aclass":"currency","altname":"ETC","decimals":10,"display_decimals":5},"XETH":{"aclass":"currency","altname":"ETH","decimals":10,"display_decimals":5},"XLTC":{"aclass":"currency","altname":"LTC","decimals":10,"display_decimals":5},"XMLN":{"aclass":"currency","altname":"MLN","decimals":10,"display_decimals":5},"XREP":{"aclass":"currency","altname":"REP","decimals":10,"display_decimals":5},"XTZ":{"aclass":"currency","altname":"XTZ","decimals":8,"display_decimals":6},"XTZ.S":{"aclass":"currency","altname":"XTZ.S","decimals":8,"display_decimals":6},"XXBT":{"aclass":"currency","altname":"XBT","decimals":10,"display_decimals":5},"XXDG":{"aclass":"currency","altname":"XDG","decimals":8,"display_decimals":2}...
– где указывается каждая валюта, а также все возможные символы и другая торговая информация (в частности, о разрядности).
Аналогичным образом при обращении к конечной точке REST AssetPairs https://api.kraken.com/0/public/AssetPairs может быть получен ответ, аналогичный следующему:
{"error":[],"result":{..."XMLNXETH":{"altname":"MLNETH","wsname":"MLN\/ETH","aclass_base":"currency","base":"XMLN","aclass_quote":"currency","quote":"XETH","lot":"unit","pair_decimals":5,"lot_decimals":8,"lot_multiplier":1,"leverage_buy":[],"leverage_sell":[],"fees":[[0,0.26],[50000,0.24],[100000,0.22],[250000,0.2],[500000,0.18],[1000000,0.16],[2500000,0.14],[5000000,0.12],[10000000,0.1]],"fees_maker":[[0,0.16],[50000,0.14],[100000,0.12],[250000,0.1],[500000,0.08],[1000000,0.06],[2500000,0.04],[5000000,0.02],[10000000,0]],"fee_volume_currency":"ZUSD","margin_call":80,"margin_stop":40,"ordermin":"0.1"},"XMLNXXBT":{"altname":"MLNXBT","wsname":"MLN\/XBT","aclass_base":"currency","base":"XMLN","aclass_quote":"currency","quote":"XXBT","lot":"unit","pair_decimals":6,"lot_decimals":8,"lot_multiplier":1,"leverage_buy":[],"leverage_sell":[],"fees":[[0,0.26],[50000,0.24],[100000,0.22],[250000,0.2],[500000,0.18],[1000000,0.16],[2500000,0.14],[5000000,0.12],[10000000,0.1]],"fees_maker":[[0,0.16],[50000,0.14],[100000,0.12],[250000,0.1],[500000,0.08],[1000000,0.06],[2500000,0.04],[5000000,0.02],[10000000,0]],"fee_volume_currency":"ZUSD","margin_call":80,"margin_stop":40,"ordermin":"0.1"},"XMLNZEUR":{"altname":"MLNEUR","wsname":"MLN\/EUR","aclass_base":"currency","base":"XMLN","aclass_quote":"currency","quote":"ZEUR","lot":"unit","pair_decimals":3,"lot_decimals":8,"lot_multiplier":1,"leverage_buy":[],"leverage_sell":[],"fees":[[0,0.26],[50000,0.24],[100000,0.22],[250000,0.2],[500000,0.18],[1000000,0.16],[2500000,0.14],[5000000,0.12],[10000000,0.1]],"fees_maker":[[0,0.16],[50000,0.14],[100000,0.12],[250000,0.1],[500000,0.08],[1000000,0.06],[2500000,0.04],[5000000,0.02],[10000000,0]],"fee_volume_currency":"ZUSD","margin_call":80,"margin_stop":40,"ordermin":"0.1"},"XMLNZUSD":{"altname":"MLNUSD","wsname":"MLN\/USD","aclass_base":"currency","base":"XMLN","aclass_quote":"currency","quote":"ZUSD","lot":"unit","pair_decimals":3,"lot_decimals":8,"lot_multiplier":1,"leverage_buy":[],"leverage_sell":[],"fees":[[0,0.26],[50000,0.24],[100000,0.22],[250000,0.2],[500000,0.18],[1000000,0.16],[2500000,0.14],[5000000,0.12],[10000000,0.1]],"fees_maker":[[0,0.16],[50000,0.14],[100000,0.12],[250000,0.1],[500000,0.08],[1000000,0.06],[2500000,0.04],[5000000,0.02],[10000000,0]],"fee_volume_currency":"ZUSD","margin_call":80,"margin_stop":40,"ordermin":"0.1"}...
– где указывается каждая валютная пара (рынок), а также все возможные символы и различная дополнительная торговая информация (разрядность цены/объема, доступное кредитное плечо, минимальные размеры ордеров и т. д.).

Тикеры

Тикер представляет собой отчет о текущих рыночных ценах для отдельной пары валют и включает в себя следующую информацию:
  • последняя торгуемая цена
  • последний торгуемый объем
  • лучшая (самая высокая) цена бида
  • объем, доступный по лучшей цене бида
  • лучшая (самая низкая) цена аска
  • объем, доступный по лучшей цене аска
  • дополнительная торговая информация (высокий/низкий показатели за день, количество сделок, общий объем за день и т. д.)
Конечную точку REST Ticker можно использовать для получения данных тикера для одной валютной пары, группы валютных пар или всех рынков, которые в настоящее время предлагает Kraken.
Например, при обращении к конечной точке Ticker https://api.kraken.com/0/public/Ticker?pair=xdgusd могут быть получены данные тикера только для рынка Dogecoin/USD, например:
{"error":[],"result":{"XDGUSD":{"a":["0.326930000","170","170.000"],"b":["0.326910600","4090","4090.000"],"c":["0.326928000","737.92333292"],"v":["13561580.19900979","70915525.06858009"],"p":["0.324423673","0.325413683"],"t":[3102,14819],"l":["0.320320000","0.317465100"],"h":["0.328000000","0.333809100"],"o":"0.327442700"}}}
– тогда как при обращении к конечной точке Ticker https://api.kraken.com/0/public/Ticker?pair=1INCHEUR,1INCHUSD,AAVEAUD,AAVEETH,AAVEEUR,AAVEGBP,AAVEUSD,AAVEXBT,ADAAUD,ADAETH,ADAEUR,ADAGBP,ADAUSD,ADAUSDT,ADAXBT,ALGOETH,ALGOEUR,...,XDGUSD,XDGUSDT,XDGXBT,XLMAUD,XLMEUR,XLMGBP,XLMUSD,XLMXBT,XMREUR,XMRUSD,XMRXBT,XRPAUD,XRPCAD,XRPETH,XRPEUR,XRPGBP,XRPJPY,XRPUSD,XRPUSDT,XRPXBT,XTZAUD,XTZETH,XTZEUR,XTZGBP,XTZUSD,XTZXBT,YFIAUD,YFIETH,YFIEUR,YFIGBP,YFIUSD,YFIXBT,ZECEUR,ZECUSD,ZECXBT,ZRXEUR,ZRXGBP,ZRXUSD,ZRXXBT могут быть получены данные тикера для всех доступных в настоящее время рынков Kraken (на 21 августа 2021 г.).