Tickers fetcher
Last updated
Last updated
[sdks/ccxt/public/Tickers fetcher]
Loads statistics for particular markets/symbols for some period of time in recent past, usually last 24 hours. More: https://docs.ccxt.com/en/latest/manual.html#price-tickers Example:
Received via exchange
:
{"id": "upbit"}@0<br>
```<br>
2. Received via `query`:<br>
```<br>
{<br>
"symbols": ["BTC/USDT", "ETH/USDT"]<br>
}}@0 <br>
```<br>
3. Sent via `data`:<br>
```<br>
{<br>
"BTC/USDT": {<br>
"symbol": "BTC/USDT",<br>
"timestamp": 1659427024000,<br>
"datetime": "2022-08-02T07:57:04.000Z",<br>
"high": 23448.382,<br>
"low": 22749.091,<br>
"vwap": 23037.475579515813,<br>
"open": 23307.941,<br>
"close": 22948.208,<br>
"last": 22948.208,<br>
"previousClose": 23322.77600235,<br>
"change": -374.56800235,<br>
"percentage": -0.0160601809,<br>
"average": 23128.0745,<br>
"baseVolume": 14.67671432,<br>
"quoteVolume": 338114.44773453,<br>
"info": {<br>
"market": "USDT-BTC",<br>
"trade_date": "20220802",<br>
"trade_time": "075704",<br>
"trade_date_kst": "20220802",<br>
"trade_time_kst": "165704",<br>
"trade_timestamp": "1659427024000",<br>
"opening_price": "23307.941",<br>
"high_price": "23448.382",<br>
"low_price": "22749.091",<br>
"trade_price": "22948.208",<br>
"prev_closing_price": "23322.77600235",<br>
"change": "FALL",<br>
"change_price": "374.56800235",<br>
"change_rate": "0.0160601809",<br>
"signed_change_price": "-374.56800235",<br>
"signed_change_rate": "-0.0160601809",<br>
"trade_volume": "0.18818117",<br>
"acc_trade_price": "250549.3359622296308262",<br>
"acc_trade_price_24h": "338114.44773453",<br>
"acc_trade_volume": "10.91057810",<br>
"acc_trade_volume_24h": "14.67671432",<br>
"highest_52_week_price": "68606.55400000",<br>
"highest_52_week_date": "2021-11-10",<br>
"lowest_52_week_price": "17693.55062344",<br>
"lowest_52_week_date": "2022-06-18",<br>
"timestamp": "1659427500094"<br>
}<br>
},<br>
"ETH/USDT": {<br>
"symbol": "ETH/USDT",<br>
"timestamp": 1659426152000,<br>
"datetime": "2022-08-02T07:42:32.000Z",<br>
"high": 1662.18810236,<br>
"low": 1570.32884407,<br>
"vwap": 1620.4730692597116,<br>
"open": 1633.6953234,<br>
"close": 1591.7120583,<br>
"last": 1591.7120583,<br>
"previousClose": 1628.39,<br>
"change": -36.6779417,<br>
"percentage": -0.0225240524,<br>
"average": 1612.70369085,<br>
"baseVolume": 5.36592936,<br>
"quoteVolume": 8695.34401943,<br>
"info": {<br>
"market": "USDT-ETH",<br>
"trade_date": "20220802",<br>
"trade_time": "074232",<br>
"trade_date_kst": "20220802",<br>
"trade_time_kst": "164232",<br>
"trade_timestamp": "1659426152000",<br>
"opening_price": "1633.6953234",<br>
"high_price": "1662.18810236",<br>
"low_price": "1570.32884407",<br>
"trade_price": "1591.7120583",<br>
"prev_closing_price": "1628.39000000",<br>
"change": "FALL",<br>
"change_price": "36.67794170",<br>
"change_rate": "0.0225240524",<br>
"signed_change_price": "-36.67794170",<br>
"signed_change_rate": "-0.0225240524",<br>
"trade_volume": "0.00028336",<br>
"acc_trade_price": "4658.7479132803129377",<br>
"acc_trade_price_24h": "8695.34401943",<br>
"acc_trade_volume": "2.90903336",<br>
"acc_trade_volume_24h": "5.36592936",<br>
"highest_52_week_price": "5135.23704540",<br>
"highest_52_week_date": "2021-11-09",<br>
"lowest_52_week_price": "889.1295426",<br>
"lowest_52_week_date": "2022-06-18",<br>
"timestamp": "1659426900095"<br>
}<br>
}<br>
}@0 <br>
```<br>
---
### Input ports
* __exchange__: ` {"id": string} `
Received the exchange to be used.<br>
<br>
More:<br>
https://docs.ccxt.com/en/latest/exchange-markets.html<br>
<br>
Example:<br>
```<br>
{"id": "upbit"}<br>
```<br>
* __query__:
```
{optional "symbols": string[], optional "params": {string: any}}
```
Received the tickers parameters to be fetched.<br>
<br>
Example:<br>
```<br>
{<br>
"symbols": [<br>
"BTC/USDT",<br>
"ETH/USDT"<br>
]<br>
}<br>
```<br>
### Output ports
* __data__:
```
{string: {
"symbol": string,
"info": any,
optional "timestamp": number,
optional "datetime": string,
optional "high": number,
optional "low": number,
optional "bid": number,
optional "bidVolume": number,
optional "ask": number,
optional "askVolume": number,
optional "vwap": number,
optional "open": number,
"close": number,
"last": number,
optional "previousClose": number,
optional "change": number,
optional "percentage": number,
optional "average": number,
optional "baseVolume": number,
optional "quoteVolume": number
}}
```
Sends statistical calculation with the information calculated over the past 24 hours for a specific market.<br>
<br>
Example:<br>
```<br>
{<br>
"BTC/USDT": {<br>
"symbol": "BTC/USDT",<br>
"timestamp": 1659427024000,<br>
"datetime": "2022-08-02T07:57:04.000Z",<br>
"high": 23448.382,<br>
"low": 22749.091,<br>
"vwap": 23037.475579515813,<br>
"open": 23307.941,<br>
"close": 22948.208,<br>
"last": 22948.208,<br>
"previousClose": 23322.77600235,<br>
"change": -374.56800235,<br>
"percentage": -0.0160601809,<br>
"average": 23128.0745,<br>
"baseVolume": 14.67671432,<br>
"quoteVolume": 338114.44773453,<br>
"info": {<br>
"market": "USDT-BTC",<br>
"trade_date": "20220802",<br>
"trade_time": "075704",<br>
"trade_date_kst": "20220802",<br>
"trade_time_kst": "165704",<br>
"trade_timestamp": "1659427024000",<br>
"opening_price": "23307.941",<br>
"high_price": "23448.382",<br>
"low_price": "22749.091",<br>
"trade_price": "22948.208",<br>
"prev_closing_price": "23322.77600235",<br>
"change": "FALL",<br>
"change_price": "374.56800235",<br>
"change_rate": "0.0160601809",<br>
"signed_change_price": "-374.56800235",<br>
"signed_change_rate": "-0.0160601809",<br>
"trade_volume": "0.18818117",<br>
"acc_trade_price": "250549.3359622296308262",<br>
"acc_trade_price_24h": "338114.44773453",<br>
"acc_trade_volume": "10.91057810",<br>
"acc_trade_volume_24h": "14.67671432",<br>
"highest_52_week_price": "68606.55400000",<br>
"highest_52_week_date": "2021-11-10",<br>
"lowest_52_week_price": "17693.55062344",<br>
"lowest_52_week_date": "2022-06-18",<br>
"timestamp": "1659427500094"<br>
}<br>
},<br>
"ETH/USDT": {<br>
"symbol": "ETH/USDT",<br>
"timestamp": 1659426152000,<br>
"datetime": "2022-08-02T07:42:32.000Z",<br>
"high": 1662.18810236,<br>
"low": 1570.32884407,<br>
"vwap": 1620.4730692597116,<br>
"open": 1633.6953234,<br>
"close": 1591.7120583,<br>
"last": 1591.7120583,<br>
"previousClose": 1628.39,<br>
"change": -36.6779417,<br>
"percentage": -0.0225240524,<br>
"average": 1612.70369085,<br>
"baseVolume": 5.36592936,<br>
"quoteVolume": 8695.34401943,<br>
"info": {<br>
"market": "USDT-ETH",<br>
"trade_date": "20220802",<br>
"trade_time": "074232",<br>
"trade_date_kst": "20220802",<br>
"trade_time_kst": "164232",<br>
"trade_timestamp": "1659426152000",<br>
"opening_price": "1633.6953234",<br>
"high_price": "1662.18810236",<br>
"low_price": "1570.32884407",<br>
"trade_price": "1591.7120583",<br>
"prev_closing_price": "1628.39000000",<br>
"change": "FALL",<br>
"change_price": "36.67794170",<br>
"change_rate": "0.0225240524",<br>
"signed_change_price": "-36.67794170",<br>
"signed_change_rate": "-0.0225240524",<br>
"trade_volume": "0.00028336",<br>
"acc_trade_price": "4658.7479132803129377",<br>
"acc_trade_price_24h": "8695.34401943",<br>
"acc_trade_volume": "2.90903336",<br>
"acc_trade_volume_24h": "5.36592936",<br>
"highest_52_week_price": "5135.23704540",<br>
"highest_52_week_date": "2021-11-09",<br>
"lowest_52_week_price": "889.1295426",<br>
"lowest_52_week_date": "2022-06-18",<br>
"timestamp": "1659426900095"<br>
}<br>
}<br>
}<br>
```<br>
<br>
<br>
More:<br>
https://docs.ccxt.com/en/latest/manual.html#price-tickers<br>
* __error__: ` {"error": string, optional "details": any} `