Skip to main content
GET
/
quote
/
market
curl --request GET \
  --url 'https://api.starkfi.io/quote/market?from=ETH&to=USDT' \
  --header 'x-api-key: <api_key>'
{
  "statusCode": 200,
  "success": true,
  "status": "quote_ok",
  "message": "Market quote",
  "data": {
    "symbol": "ETHUSDT",
    "price": "3000",
    "source": "binance",
    "market": {
      "symbol": "ETHUSDT",
      "price": "3000"
    },
    "exchange": {
      "symbol": "ETHUSDT",
      "base": "ETH",
      "quote": "USDT",
      "meaning": "Exchange spot: 1 ETH costs 3000 USDT"
    },
    "rates": [
      {
        "from": "ETH",
        "to": "USDT",
        "price": "3000",
        "description": "1 ETH = 3000 USDT"
      },
      {
        "from": "USDT",
        "to": "ETH",
        "price": "0.00033333",
        "description": "1 USDT = 0.00033333 ETH"
      }
    ],
    "requested": {
      "from": "ETH",
      "to": "USDT",
      "price": "3000",
      "description": "1 ETH = 3000 USDT"
    }
  }
}
Returns a live market quote from Binance or Bybit. Supports any-to-any conversion via from and to, with automatic fallback to a USDT cross rate when no direct pair is listed.
x-api-key
string
required
Your StarkFi API key.
from
string
Source asset symbol (e.g. ETH, BTC, USDT, BRL). Use together with to for any-to-any quotes.
to
string
Target asset symbol. Required with from when not using pair.
pair
string
Legacy exchange pair symbol (e.g. BTCUSDT). Omit when using from and to.
try_one
string
First pair orientation to try (e.g. USDTETH). Use with try_two for legacy fiat-oriented flows.
try_two
string
Second pair orientation to try (e.g. ETHUSDT). Use with try_one.
curl --request GET \
  --url 'https://api.starkfi.io/quote/market?from=ETH&to=USDT' \
  --header 'x-api-key: <api_key>'
{
  "statusCode": 200,
  "success": true,
  "status": "quote_ok",
  "message": "Market quote",
  "data": {
    "symbol": "ETHUSDT",
    "price": "3000",
    "source": "binance",
    "market": {
      "symbol": "ETHUSDT",
      "price": "3000"
    },
    "exchange": {
      "symbol": "ETHUSDT",
      "base": "ETH",
      "quote": "USDT",
      "meaning": "Exchange spot: 1 ETH costs 3000 USDT"
    },
    "rates": [
      {
        "from": "ETH",
        "to": "USDT",
        "price": "3000",
        "description": "1 ETH = 3000 USDT"
      },
      {
        "from": "USDT",
        "to": "ETH",
        "price": "0.00033333",
        "description": "1 USDT = 0.00033333 ETH"
      }
    ],
    "requested": {
      "from": "ETH",
      "to": "USDT",
      "price": "3000",
      "description": "1 ETH = 3000 USDT"
    }
  }
}

Notes

  • Asset symbols must match exchange tickers (letters, numbers, ., _, -; max 64 characters).
  • Prices follow the spot convention BASEQUOTE: price is how much quote asset one base costs.
  • StarkFi queries Binance first, then Bybit, for each candidate symbol.