Skip to content

GeckoTerminal - API cleanups #342

@ashachaf

Description

@ashachaf

/gecko-terminal/events endpoint
https://api.carbondefi.xyz/v1/sei/gecko-terminal/events?fromBlock=182363000&toBlock=182364317

  • number value should be integer and indicate the number on the wei level with decimal accuracy. (meaning, 1 ETH would be indicated as 1 with 18 zeros, 1000000000000000000)

Current (example):

  • "asset0In": "5168.074932742696046004",
  • "asset1In": "0",
  • "asset0Out": "0",
  • "asset1Out": "0.012794422565714092",
  • "priceNative": "403931.8622000078934130367268651250598771691511458370006180866642772658226434714206406139757110564595",
  • "reserves": {
  • "asset0": "1923632.627817858948195918",
  • "asset1": "12.370622530987456779"
    updated:

Updated (example):

  • "asset0In": integer -> 5168074932742696046004,
  • "asset1In": integer -> 0,
  • "asset0Out": integer -> 0,
  • "asset1Out": integer -> 12794422565714092,
  • "priceNative": integer denominated in quote token decimals -> 403931862200007893413036,
  • "reserves": {
  • "asset0": integer -> 1923632627817858948195918,
  • "asset1": integer -> 12370622530987456779

/gecko-terminal/pair endpoint
https://api.carbondefi.xyz/v1/sei/gecko-terminal/pair?id=0xe4816658ad10bF215053C533cceAe3f59e1f1087-1953

  • feeBps should be passed as integer with decimal precision
  • feeBps data should be based on the following rule:
    IF pairTradingFeePPM() = 0, indicate tradingFeePPM()
    ELSE indicate pairTradingFeePPM()

reference documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions