API Documentation

A free, simple API to fetch token prices from the SmartSwap platform.

Live Test Environment
Get Token Price
This endpoint returns the current price of a specified token in USDC.

HTTP Request

GET https://smartswap.bankofvector.com/api/price

Query Parameters

tokenAddressrequired

The contract address of the token you want to price.

Request Examples

curl "https://smartswap.bankofvector.com/api/price?tokenAddress=0xdf6236B7E1FaE003561C5c1683C201aD5037dC39"

Example Success Response

{
  "tokenAddress": "0xdf6236B7E1FaE003561C5c1683C201aD5037dC39",
  "symbol": "BANK",
  "priceUsd": "0.085123456789",
  "source": "live"
}