Ticker fetcher
Last updated
Last updated
[sdks/ccxt/public/Ticker fetcher]
Loads statistics for a particular market/symbol 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": "aax"}@0<br>
```<br>
2. Received via `query`:<br>
```<br>
{<br>
"symbol": "BTC/USDT"<br>
}@0 <br>
```<br>
3. Sent via `data`:<br>
```<br>
{<br>
"symbol": "BTC/USDT",<br>
"timestamp": 1659357154942,<br>
"high": 24207.39,<br>
"low": 22950.5,<br>
"open": 23751.54,<br>
"close": 23246.93,<br>
"last": 23246.93,<br>
"change": -504.61,<br>
"percentage": -2.124535924828453,<br>
"average": 23499.235,<br>
"quoteVolume": 912693366.7110586,<br>
"info": {<br>
"a": "0.00000000",<br>
"c": "23246.93000000",<br>
"d": "-2.12453592",<br>
"h": "24207.39000000",<br>
"l": "22950.50000000",<br>
"o": "23751.54000000",<br>
"q": "38923.969718",<br>
"s": "BTCUSDT",<br>
"v": "912693366.71105862",<br>
"t": 1659357154942<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": "aax"}<br>
```<br>
* __query__:
```
{"symbol": string, optional "params": {string: any}}
```
Received the ticker parameters to be fetched.<br>
<br>
Example:<br>
```<br>
{<br>
"symbol": "BTC/USDT"<br>
}<br>
```<br>
### Output ports
* __data__:
```
{
"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>
"symbol": "BTC/USDT",<br>
"timestamp": 1659105907361,<br>
"high": 24398,<br>
"low": 22996.84,<br>
"open": 22997.99,<br>
"close": 24103.57,<br>
"last": 24103.57,<br>
"change": 1105.58,<br>
"percentage": 4.807289680532951,<br>
"average": 23550.78,<br>
"quoteVolume": 1552289875.7780151,<br>
"info": {<br>
"a": "0.00000000",<br>
"c": "24103.57000000",<br>
"d": "4.80728968",<br>
"h": "24398.00000000",<br>
"l": "22996.84000000",<br>
"o": "22997.99000000",<br>
"q": "65051.088090",<br>
"s": "BTCUSDT",<br>
"v": "1552289875.77801514",<br>
"t": 1659105907361<br>
}<br>
}<br>
```<br>
<br>
More:<br>
https://docs.ccxt.com/en/latest/manual.html#price-tickers<br>
* __error__: ` {"error": string, optional "details": any} `