Type/to search
Built-in Functions
Structures
Ticker
Depth
OrderBook
Trade
Record
Market
Order
Condition
Account
Asset
Position
Funding
Other Structures
Built-in Variables and Constants
Conventions
Exchanges

Market depth returned by exchange.GetDepth(): the asks Asks and bids Bids (OrderBook arrays) and a timestamp.

Attributes

NameTypeDescription

Info

object

Raw data returned by the exchange API, not included in backtesting.

Asks

array

Ask orders array, i.e., OrderBook array, sorted by price from low to high, with the first OrderBook structure in the array having the lowest price.

Bids

array

Bid orders array, i.e., OrderBook array, sorted by price from high to low, with the first OrderBook structure in the array having the highest price.

Time

number

Timestamp in milliseconds.

See Also

Remarks

The exchange.GetDepth() function returns a Depth structure.