Bitflow Documentation
  • 🌊Introduction to BitFlow
  • πŸ“–Table of Contents
  • πŸ”—Quick Links
  • Fundamentals
    • 🌟Getting Started
    • πŸ”€Trade Stablecoins
    • πŸͺ™Bitcoin Swaps
    • πŸ’°Earn Real Yield
    • πŸ”’Permissionless Borrowing
    • πŸŒ‰Bridging Liquidity
  • Governance
    • πŸ—³οΈOverview
  • LEARN
    • What is the DEX Aggregator?
    • πŸ’±What is the Bitflow StableSwap?
      • βž—Invariant Design
    • πŸ”€What is an AMM?
    • πŸͺ™What is sBTC?
    • πŸ”΅What is stSTX?
  • Developers
    • βš™οΈOverview
    • Bitflow SDK
    • πŸ’ΎSmart Contracts
      • πŸ’±StableSwap [USDA-sUSDT LP]
      • 🎁Staking and Rewards [USDA-sUSDT LP]
    • πŸ—ƒοΈPublic Repositories
    • πŸ“‹Deployed Contracts
      • 🟣Stacks
    • Public Api Documentation
  • Resources
    • πŸ—ΊοΈRoadmap
    • Tutorials
    • πŸ“‘Whitepapers
    • 🐞Bug Bounty Program
    • πŸ”Audits
    • πŸ”€Glossary
Powered by GitBook
On this page
  • Base URL
  • Available Endpoints
  • Get Ticker
  • SDK API Requests
  1. Developers

Public Api Documentation

This page is to share endpoints that are publicly accssible for others to use for their own projects. Please reach out if you would like a API Key to explore other data we make available in our SDK.

Base URL

<https://bitflow-sdk-api-gateway-7owjsmt8.uc.gateway.dev>

Available Endpoints

Get Ticker

Retrieve details of all available tokens on the DEX.

GET /ticker

Sample Response

  {
    "ask": 0.0563427827802654,
    "base_currency": "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token",
    "base_volume": 0.00005497,
    "bid": 0.0563427827802654,
    "high": 5586592.17877095,
    "last_price": 5555555.55555556,
    "liquidity_in_usd": 33098.7565339403,
    "low": 5536332.1799308,
    "target_currency": "SP14NS8MVBRHXMM96BQY0727AJ59SWPV7RMHC0NCG.pontis-bridge-BDC",
    "target_volume": 306,
    "ticker_id": "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token_SP14NS8MVBRHXMM96BQY0727AJ59SWPV7RMHC0NCG.pontis-bridge-BDC"
  }
  • ticker_id: Identifier of a ticker with delimiter to separate base/target

  • base_volume: the total trading volume measured in the base currency of the pair over the last 24 hours.

    • Ex: if your trading pair is BTC/USDT, the base volume would be the sum of all BTC amounts traded in that period.

  • base_currency: Contract Address of the base asset

  • target_volume: the total trading volume measured in the target currency of the pair over the last 24 hours.

    • Ex: if your trading pair is BTC/USDT, the base volume would be the sum of all USDT amounts traded.

  • target_currency: Contract Address of the target asset

  • liquidity_in_usd: Pool liquidity in USD

  • high: the highest price at which any trade (or transaction) occurred over the past 24 hours.

  • low: the lowest price at which any trade (or transaction) occurred over the past 24 hours.

  • last_price: Last transacted price of base currency based on given target currency

    • last_price = targetTokenAmountTransacted / baseTokenAmountTransacted

  • ask: most recent quote price directly going through the ticker

  • bid: most recent quote price directly going through the ticker

SDK API Requests

If you would like to work with BitFlow trough our SDK or get access to our private APIs please reach out to the team. We always have oppotunities to share, collaborate, and build together!

PreviousStacksNextRoadmap

Last updated 2 months ago