For AI agents: visit https://tegro.readme.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
Jump to Content
Tegro DEX Documentation
API Reference
v1.0

Log InTegro DEX Documentation
API Reference
Log In
v1.0API Reference

ABout TEGRO

  • Introduction
  • Features

Key Concepts

  • Getting Started With Tegro API
  • Order States
  • Orders vs Trades
  • Decimal Precision Handling

HOW-TO GUIDE

  • Connect Wallet
  • Begin Trading

REST API References

  • Chains
    • Fetch Chainsget
  • Markets
    • Fetch Market's Orderbook Depthget
    • Fetch Market Informationget
    • Fetch Marketsget
    • Fetch chart of market tradesget
  • Orders
    • Generate Order for Signingpost
    • Place Order in the Order Bookpost
    • Generate Cancel Orderpost
    • Cancel User's Orderpost
    • Fetch User's Ordersget
  • Trades
    • Fetch Trades For A Marketget
    • Fetch Trades For An Orderget
  • Accounts
    • Fetch portfolioget
    • Fetch token balanceget
    • Fetch markets balancesget
    • Fetch wallet tokens balancesget
  • WebSocket Connection

Tegro Bots

  • Sakura Bot (Market make & Earn Points)

SDK API References

  • TypeScript SDK
    • Getting Started
    • Enumerations
      • MarketStatus
      • OrderSide
      • OrderStatus
      • RealtimeEvent
      • Environment
    • Classes
      • TegroDexClient
    • Type Aliases
      • Orderbook
      • Chain
      • Order
      • Market
      • OrderbookEntry
      • Token
      • RealtimeEventCallback

Tegro DEX - Mainnet

  • Getting Started With Your API
Powered by 

Orderbook

type Orderbook: {
  asks: OrderbookEntry[];
  bids: OrderbookEntry[];
};

Represents an order book with separate arrays for asks and bids.

Type declaration

MemberTypeDescription
asksOrderbookEntry[]Array of order book entries representing sell orders (asks).
bidsOrderbookEntry[]Array of order book entries representing buy orders (bids).

Updated over 2 years ago


Updated over 2 years ago


  • Table of Contents
    • Type declaration