bancorprotocol / carbon-backend

MIT License
1 stars 7 forks source link

CoinGecko - /historical_trades (Historical Data) #4

Closed ashachaf closed 1 year ago

ashachaf commented 1 year ago

Endpoint 4 - /historical_trades (Historical Data)

The /historical_trades/ticker_id is used to return data on historical completed trades for a given market pair.

Endpoint parameters:

Example query: .../api/historical_trades?ticker_id=BTC_ETH&limit=10

Response parameters:

Example response:

“buy”: [  
   {        
      "trade_id":1234567,
      "price":"50.1",
      "base_volume":"0.1",
      "target_volume":"1",
      "trade_timestamp":"1700050000",
      "type":"buy"
   }
],
“sell”: [
   {        
      "trade_id":1234567,
      "price":"50.1",
      "base_volume":"0.1",
      "target_volume":"1",
      "trade_timestamp":"1700050000",
      "type":"sell"
   }
]
yarivbancor commented 1 year ago

https://api.carbondefi.xyz/v1/coingecko/historical_trades?limit=10000