DeFi Lens
  • API Introduction
    • Signal Matrix
    • AI Position
    • Similar chart
    • Candle Detection
    • Chart pattern
    • Token Info and Technical Analyst Indicator
    • ICO/IDO
    • Market
    • Errors
  • Privacy Policy
  • Terms of Use
Powered by GitBook
On this page
  • Retrieve token available marketplace
  • Headers
  • Body
  • Example request
  • Response
  • Data return
  1. API Introduction

Market

PreviousICO/IDONextErrors

Last updated 7 months ago

Retrieve token available marketplace

GET /listings/market/:tokenId

Example on DeFi Lens:

Headers

Name
Type
Description

x-partner-key

string

Your API Key

Ex: xxxx

Body

Name
Type
Description

tokenId

string

Source token name Ex: bitcoin

Example request

curl -X 'GET' \
  'https://api.defilens.ai/listings/market/bitcoin' \
  -H 'accept: */*'

Response

{
    "data": [
        {
            "exchangeImage": "https://s2.coinmarketcap.com/static/img/exchanges/64x64/270.png",
            "exchangeName": "Binance",
            "marketPair": "BTC/FDUSD",
            "price": 61498.52588985,
            "volumeUsd": 3979024791.151182,
            "liquidity_score": 933,
            "marketUrl": "https://www.binance.com/en/trade/BTC_FDUSD",
            "depthUsdNegativeTwo": 3836171.09588373,
            "depthUsdPositiveTwo": 4379599.67628964,
            "marketReputation": 1,
            "volumePercent": 8.762886035203,
            "id": "1262381bitcoin"
        },
        "total": 1

Data return

Name
Type
Description

Float

Capital required to increase the price by 2%.

Float

Capital required to reduce the price by 2%.

Integer

This is a value between 0 to 1,000 (in most cases) based on the slippage incurred by various order sizes. A higher score indicates a more liquid market.

Float

The percentage of the total market volume that this specific market pair represents.

depthUsdPositiveTwo
depthUsdNegativeTwo
liquidity_score
volumePercent
https://defilens.ai/tokens/bitcoin/markets