{
  "opencollection": "1.0.0",
  "info": {
    "name": "Amberdata API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "apikey": {
        "key": "x-api-key",
        "value": "{{apiKey}}",
        "in": "header"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Spot",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Spot exchanges reference",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/spot/exchanges/reference"
          },
          "docs": "Returns reference information for all supported spot exchanges and instruments."
        },
        {
          "info": {
            "name": "Latest spot price for a pair",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/spot/prices/:pair/latest",
            "params": [
              {
                "name": "pair",
                "value": "eth_usd",
                "type": "path",
                "description": "The trading pair."
              }
            ]
          },
          "docs": "Returns the latest price for the specified spot pair."
        },
        {
          "info": {
            "name": "Historical spot OHLCV",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/spot/ohlcv/:pair/historical",
            "params": [
              {
                "name": "pair",
                "value": "eth_usd",
                "type": "path",
                "description": "The trading pair."
              }
            ]
          },
          "docs": "Returns historical OHLCV time series for the specified spot pair."
        },
        {
          "info": {
            "name": "Spot tickers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/spot/tickers/:pair",
            "params": [
              {
                "name": "pair",
                "value": "btc_usd",
                "type": "path",
                "description": "The trading pair."
              }
            ]
          },
          "docs": "Returns historical and live best bid and best ask for the specified spot instrument."
        },
        {
          "info": {
            "name": "Historical spot trades",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/spot/trades/:pair",
            "params": [
              {
                "name": "pair",
                "value": "eth_usd",
                "type": "path",
                "description": "The trading pair."
              }
            ]
          },
          "docs": "Returns historical trade data for the specified spot pair."
        },
        {
          "info": {
            "name": "Spot order book snapshots",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/spot/order-book-snapshots/:pair",
            "params": [
              {
                "name": "pair",
                "value": "btc_usd",
                "type": "path",
                "description": "The trading pair."
              }
            ]
          },
          "docs": "Returns order book snapshots for the specified spot pair."
        }
      ]
    },
    {
      "info": {
        "name": "Futures",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Futures exchanges reference",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/futures/exchanges/reference"
          },
          "docs": "Returns reference data for futures instruments across exchanges."
        },
        {
          "info": {
            "name": "Futures funding rates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/futures/funding-rates/:instrument",
            "params": [
              {
                "name": "instrument",
                "value": "BTCUSD_PERP",
                "type": "path",
                "description": "The futures instrument."
              }
            ]
          },
          "docs": "Returns funding rate data for the specified futures instrument."
        },
        {
          "info": {
            "name": "Futures open interest",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/futures/open-interest/:instrument",
            "params": [
              {
                "name": "instrument",
                "value": "BTCUSD_PERP",
                "type": "path",
                "description": "The futures instrument."
              }
            ]
          },
          "docs": "Returns open interest data for the specified futures instrument."
        },
        {
          "info": {
            "name": "Futures liquidations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/futures/liquidations/:instrument",
            "params": [
              {
                "name": "instrument",
                "value": "BTCUSD_PERP",
                "type": "path",
                "description": "The futures instrument."
              }
            ]
          },
          "docs": "Returns liquidation events for the specified futures instrument."
        }
      ]
    },
    {
      "info": {
        "name": "Options",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Options instruments and reference",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/options/exchanges/reference"
          },
          "docs": "Returns all available exchanges, currencies, and option instruments."
        },
        {
          "info": {
            "name": "Options trades",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/markets/options/trades/:instrument",
            "params": [
              {
                "name": "instrument",
                "value": "BTC-28JUN24-60000-C",
                "type": "path",
                "description": "The options instrument."
              }
            ]
          },
          "docs": "Returns trade data for the specified options instrument."
        }
      ]
    },
    {
      "info": {
        "name": "DeFi",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "DEX trades",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/defi/dex/trades/:pair",
            "params": [
              {
                "name": "pair",
                "value": "weth_usdc",
                "type": "path",
                "description": "The DEX pair."
              }
            ]
          },
          "docs": "Returns DEX trade history for the specified pair."
        },
        {
          "info": {
            "name": "DeFi lending protocols",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/defi/lending/protocols"
          },
          "docs": "Returns lending protocol metrics across supported DeFi lending markets."
        }
      ]
    },
    {
      "info": {
        "name": "On-Chain",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Blocks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/blockchains/:blockchainId/blocks",
            "params": [
              {
                "name": "blockchainId",
                "value": "ethereum-mainnet",
                "type": "path",
                "description": "The blockchain network identifier."
              }
            ]
          },
          "docs": "Returns block information for the specified blockchain."
        },
        {
          "info": {
            "name": "Transactions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/blockchains/:blockchainId/transactions",
            "params": [
              {
                "name": "blockchainId",
                "value": "ethereum-mainnet",
                "type": "path",
                "description": "The blockchain network identifier."
              }
            ]
          },
          "docs": "Returns transaction data for the specified blockchain."
        },
        {
          "info": {
            "name": "Address balances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/blockchains/:blockchainId/addresses/:address/balances",
            "params": [
              {
                "name": "blockchainId",
                "value": "ethereum-mainnet",
                "type": "path",
                "description": "The blockchain network identifier."
              },
              {
                "name": "address",
                "value": "0x0000000000000000000000000000000000000000",
                "type": "path",
                "description": "The on-chain address."
              }
            ]
          },
          "docs": "Returns account balance and token balances for the specified address."
        },
        {
          "info": {
            "name": "Token information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/blockchains/:blockchainId/tokens/:address/information",
            "params": [
              {
                "name": "blockchainId",
                "value": "ethereum-mainnet",
                "type": "path",
                "description": "The blockchain network identifier."
              },
              {
                "name": "address",
                "value": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "type": "path",
                "description": "The token contract address."
              }
            ]
          },
          "docs": "Returns token information including name, symbol, decimals, and supply."
        },
        {
          "info": {
            "name": "Token transfers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/blockchains/:blockchainId/tokens/:address/transfers",
            "params": [
              {
                "name": "blockchainId",
                "value": "ethereum-mainnet",
                "type": "path",
                "description": "The blockchain network identifier."
              },
              {
                "name": "address",
                "value": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "type": "path",
                "description": "The token contract address."
              }
            ]
          },
          "docs": "Returns token transfers including sender, receiver, amount, transaction hash, and timestamp."
        },
        {
          "info": {
            "name": "Token holders",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.amberdata.com/blockchains/:blockchainId/tokens/:address/holders",
            "params": [
              {
                "name": "blockchainId",
                "value": "ethereum-mainnet",
                "type": "path",
                "description": "The blockchain network identifier."
              },
              {
                "name": "address",
                "value": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "type": "path",
                "description": "The token contract address."
              }
            ]
          },
          "docs": "Returns token holder information including number of holders and tokens held by each."
        }
      ]
    }
  ],
  "bundled": true
}
