Stellar
/trade_aggregations30 crédits
Get trade aggregations
Paramètres
| Nom | Type | Description |
|---|---|---|
| base_asset_type | string | Query. Type of the base asset: native, credit_alphanum4 or credit_alphanum12. |
| base_asset_code | string | Query. Code of the base asset. Required unless base_asset_type is native. (facultatif) |
| base_asset_issuer | string | Query. Issuer account of the base asset. Required unless base_asset_type is native. (facultatif) |
| counter_asset_type | string | Query. Type of the counter asset: native, credit_alphanum4 or credit_alphanum12. |
| counter_asset_code | string | Query. Code of the counter asset. Required unless counter_asset_type is native. (facultatif) |
| counter_asset_issuer | string | Query. Issuer account of the counter asset. Required unless counter_asset_type is native. (facultatif) |
| resolution | integer | Query. Segment duration in milliseconds: 60000 (1 min), 300000 (5 min), 900000 (15 min), 3600000 (1 h), 86400000 (1 day) or 604800000 (1 week). |
| start_time | integer | Query. Lower time boundary, milliseconds since epoch. (facultatif) |
| end_time | integer | Query. Upper time boundary, milliseconds since epoch. (facultatif) |
| offset | integer | Query. Segment offset in milliseconds. Only for resolutions above 1 hour; whole hours, smaller than the resolution and than 24 hours. (facultatif) |
| order | string | Query. asc or desc. Defaults to asc. (facultatif) |
| limit | integer | Query. Max records per page, 1 to 200. Defaults to 10. (facultatif) |
Valeur renvoyée
Type
object
Paged collection: _links (self, next, prev) and _embedded.records, an array of segments (timestamp, trade_count, base_volume, counter_volume, avg, high, high_r, low, low_r, open, open_r, close, close_r).
Exemples de code
curl 'https://holy-burned-sky-stellar-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7/trade_aggregations'