API - Market Depth

DeltaDeFi hosts official APIs to improve accessibility of the L1 swap contracts. The entire swap is still mostly handled through Aiken smart contract, the API provides additional information to facilitate informed trading decision going through.

URL

Environment
URL Endpoint

Pre-Prod

https://operator-staging.deltadefi.io

Mainnet

TBC


GET /depth/{symbol}

Get the current market depth for a trading pair post fee. The price shown in depth response has is exactly what you could expect to trade without fee.

Example Request

GET /depth/NIGHTUSDM

Example Response

{
  "timestamp": 1773113131587,
  "bids": [
    { "price": "0.05090", "quantity": "31395" } // Buy order - 31,395 NIGHT at $0.05090
  ],
  "asks": [
    { "price": "0.05311", "quantity": "3977.5" }, // Sell order - 3,977.5 NIGHT at $0.05090
    { "price": "0.05210", "quantity": "6220" }
  ]
}

Response Fields

Field
Type
Description

timestamp

number

Unix timestamp in milliseconds

bids

array

Buy orders - price/quantity objects

asks

array

Sell orders - price/quantity objects

Last updated