Kana Labs
  • Getting Started
    • Welcome to Kana Labs
  • CROSS CHAIN SWAPS
    • AMM DEX Aggregator
  • INTEGRATE KANA WIDGET
    • Kana Widget
      • Install Widget
      • Configure Widget
      • Configure Aptos Keyless
  • Web3 Aggregator SDK
    • Web3 Aggregator SDK
      • Installation
      • SameChain
      • Cross Chain Swap
      • Aggregator API's
  • SPOT TRADING PLATFORM
    • Kana Trade
      • API Docs
  • PERPETUAL FUTURES
    • Kana Perps
      • Getting Started
        • Mint Tokens on Testnet
      • Breaking Down Kana Perps
        • Assets Supported
        • Order Types
        • Orderbook
        • Funding Rate
        • Leverage
        • Margin and Liquidation
        • Hedge Mode
          • Hedging a Short-Term 2-3% Price Decline
          • Dual Positioning for Flexible Profit-Taking
        • Trading Fees
      • API Docs
        • Installation Setup
        • Kana Perps Typescript REST API
        • Kana Perps Python Websocket API
        • Kana Perps Python REST API
        • Steps to place an order
        • Perps Contract Error Codes
        • Websocket Connection
        • Supported Markets
  • SPOT & PERP APIs
    • Trading APIs
      • Kana Trade API
      • Kana Perps API
        • Installation Setup
        • Example setup functions
        • Kana Perps Typescript REST API
        • Kana Perps Websocket API
        • Kana Perps Python Websocket API
        • Kana Perps Python REST API
        • Steps to place an order
  • PAYMASTER SERVICE
    • Kana Paymaster For Aptos and Supra
      • How it works?
      • How to Register?
      • Deposit Allowance
      • Manage Users
      • Paymaster SDK Tutorial (Typescript)
      • Paymaster API
      • Module & Function Whitelist
      • Subscription - Coming soon
      • FAQS
  • PERPETUAL OPTIONS
    • OPerps
  • Tokenomics & Governance
    • Kana Labs Tokenomics
  • REWARDS & REFERRAL PROGRAM
    • Rewards Program
      • Reward Program Season 1
      • Reward Program Season 2
      • How to Keep Track of Your Points?
      • Where to find the Missions Dashboard?
  • Referral Program
    • How to Generate Referral Link? (For the Referrer)
    • How to map your wallet to the invite IDs? (For the invited users)
Powered by GitBook
On this page
  1. Web3 Aggregator SDK
  2. Web3 Aggregator SDK

Aggregator API's

PreviousCross Chain SwapNextKana Trade

Last updated 8 months ago

You can optionally use our API's to integrate Kanalabs with your application

SWAGGER LINK -

TOKEN LIST API

you can use our token list api which also have current market price

LINK -

Example code :

 const response = await axios.get('https://ag.kanalabs.io/tokens', {
    params: {
      chain: KanaChainID.aptos,
    },
    headers: {
      'Content-Type': 'application/json',
      'X-API-KEY': '//* YOUR API KEY *//',
    },
  });

NOTE: KanaChainID.aptos is enum of chains that maintained by kanalabs

enum KanaChainID {
  'solana' = 1,
  'aptos' = 2,
  'polygon' = 3,
  'bsc' = 4,
  'sui' = 5,
  'ethereum' = 6,
  'zkSync' = 9,
  'Avalanche' = 10,
  'Arbitrum' = 11,
}

you can also pass an array of tokens if u want to get token details specifical

const tokens  = ['0x1::aptos_coin::AptosCoin']  // u can add more tokens 
  
const response = await axios.get('https://ag.kanalabs.io/tokens', {
    params: {
      chain: KanaChainID.aptos,
      tokens: JSON.stringify(tokens), // pls note here , u need to stringify the array
    },
    headers: {
      'Content-Type': 'application/json',
      'X-API-KEY': '//* YOUR API KEY *//',
    },
  });

https://ag.kanalabs.io/swagger
https://ag.kanalabs.io/tokens