🛠️Data API

Get information for all tokens and latest trades on Moonshot

API calls are limited to 600 requests per minute. If you need higher rate limits please reach out to us.

Get token by pair or token id

get
Path parameters
chainIdstringRequiredExample: {"value":"solana"}
pairIdOrTokenIdstringRequired

Pair/curve address or token address

Example: {"value":"GeEbYNsDv6Yen2uXCs4j3vkb6hGnQR94hpRjpEo6a5CE"}
Responses
200
Ok
application/json
get
GET /token/v1/{chainId}/{pairIdOrTokenId} HTTP/1.1
Host: api.moonshot.cc
Accept: */*
{
  "url": "text",
  "chainId": "text",
  "dexId": "text",
  "pairAddress": "text",
  "baseToken": {
    "address": "text",
    "name": "text",
    "symbol": "text"
  },
  "quoteToken": {
    "address": "text",
    "name": "text",
    "symbol": "text"
  },
  "priceNative": "text",
  "priceUsd": "text",
  "txns": {
    "m5": {
      "buys": 1,
      "sells": 1,
      "total": 1
    },
    "h1": {
      "buys": 1,
      "sells": 1,
      "total": 1
    },
    "h6": {
      "buys": 1,
      "sells": 1,
      "total": 1
    },
    "h24": {
      "buys": 1,
      "sells": 1,
      "total": 1
    }
  },
  "volume": {
    "m5": {
      "buy": 1,
      "sell": 1,
      "total": 1
    },
    "h1": {
      "buy": 1,
      "sell": 1,
      "total": 1
    },
    "h6": {
      "buy": 1,
      "sell": 1,
      "total": 1
    },
    "h24": {
      "buy": 1,
      "sell": 1,
      "total": 1
    }
  },
  "makers": {
    "m5": {
      "buyers": 1,
      "sellers": 1,
      "total": 1
    },
    "h1": {
      "buyers": 1,
      "sellers": 1,
      "total": 1
    },
    "h6": {
      "buyers": 1,
      "sellers": 1,
      "total": 1
    },
    "h24": {
      "buyers": 1,
      "sellers": 1,
      "total": 1
    }
  },
  "priceChange": {
    "m5": 1,
    "h1": 1,
    "h6": 1,
    "h24": 1
  },
  "liquidity": {
    "usd": 1,
    "base": 1,
    "quote": 1
  },
  "fdv": 1,
  "marketCap": 1,
  "createdAt": 1,
  "moonshot": {
    "progress": 1,
    "creator": 1,
    "curveType": "text",
    "curvePosition": "text",
    "marketcapThreshold": "text"
  },
  "profile": {
    "icon": "text",
    "banner": "text",
    "description": "text",
    "links": [
      "text"
    ]
  }
}

Get all tokens by specified view id (trending, new, etc)

get
Path parameters
chainIdstringRequiredExample: {"value":"solana"}
viewIdstring · enumRequiredExample: {"value":"trending"}Possible values:
Responses
200
Ok
application/json
get
GET /tokens/v1/{viewId}/{chainId} HTTP/1.1
Host: api.moonshot.cc
Accept: */*
200

Ok

[
  {
    "url": "text",
    "chainId": "text",
    "dexId": "text",
    "pairAddress": "text",
    "baseToken": {
      "address": "text",
      "name": "text",
      "symbol": "text"
    },
    "quoteToken": {
      "address": "text",
      "name": "text",
      "symbol": "text"
    },
    "priceNative": "text",
    "priceUsd": "text",
    "txns": {
      "m5": {
        "buys": 1,
        "sells": 1,
        "total": 1
      },
      "h1": {
        "buys": 1,
        "sells": 1,
        "total": 1
      },
      "h6": {
        "buys": 1,
        "sells": 1,
        "total": 1
      },
      "h24": {
        "buys": 1,
        "sells": 1,
        "total": 1
      }
    },
    "volume": {
      "m5": {
        "buy": 1,
        "sell": 1,
        "total": 1
      },
      "h1": {
        "buy": 1,
        "sell": 1,
        "total": 1
      },
      "h6": {
        "buy": 1,
        "sell": 1,
        "total": 1
      },
      "h24": {
        "buy": 1,
        "sell": 1,
        "total": 1
      }
    },
    "makers": {
      "m5": {
        "buyers": 1,
        "sellers": 1,
        "total": 1
      },
      "h1": {
        "buyers": 1,
        "sellers": 1,
        "total": 1
      },
      "h6": {
        "buyers": 1,
        "sellers": 1,
        "total": 1
      },
      "h24": {
        "buyers": 1,
        "sellers": 1,
        "total": 1
      }
    },
    "priceChange": {
      "m5": 1,
      "h1": 1,
      "h6": 1,
      "h24": 1
    },
    "liquidity": {
      "usd": 1,
      "base": 1,
      "quote": 1
    },
    "fdv": 1,
    "marketCap": 1,
    "createdAt": 1,
    "moonshot": {
      "progress": 1,
      "creator": 1,
      "curveType": "text",
      "curvePosition": "text",
      "marketcapThreshold": "text"
    },
    "profile": {
      "icon": "text",
      "banner": "text",
      "description": "text",
      "links": [
        "text"
      ]
    }
  }
]

Get latest trades for a specified token

get
Path parameters
chainIdstringRequiredExample: {"value":"solana"}
pairIdOrTokenIdstringRequired

Pair/curve address or token address

Example: {"value":"GeEbYNsDv6Yen2uXCs4j3vkb6hGnQR94hpRjpEo6a5CE"}
Responses
200
Ok
application/json
get
GET /trades/v1/latest/{chainId}/{pairIdOrTokenId} HTTP/1.1
Host: api.moonshot.cc
Accept: */*
[
  {
    "dexId": "text",
    "blockNumber": 1,
    "blockTimestamp": 1,
    "pairId": "text",
    "asset0Id": "text",
    "asset1Id": "text",
    "txnId": "text",
    "maker": "text",
    "type": "buy",
    "amount0": "text",
    "amount1": "text",
    "priceNative": "text",
    "priceUsd": "text",
    "volumeUsd": "text",
    "metadata": {
      "progress": 1,
      "curvePosition": "text"
    }
  }
]

Get latest trades for all tokens

get
Path parameters
chainIdstringRequiredExample: {"value":"solana"}
Responses
200
Ok
application/json
get
GET /trades/v1/latest/{chainId} HTTP/1.1
Host: api.moonshot.cc
Accept: */*
200

Ok

[
  {
    "dexId": "text",
    "blockNumber": 1,
    "blockTimestamp": 1,
    "pairId": "text",
    "asset0Id": "text",
    "asset1Id": "text",
    "txnId": "text",
    "maker": "text",
    "type": "buy",
    "amount0": "text",
    "amount1": "text",
    "priceNative": "text",
    "priceUsd": "text",
    "volumeUsd": "text",
    "metadata": {
      "progress": 1,
      "curvePosition": "text"
    }
  }
]

Last updated