Interface IOrderBookResponse

IOrderBookResponse Interface representing an order book.

const orderBook: IOrderBook = {
asks: [
["51000", "2000.00000000"],
["52000", "2000.00000000"],
["52500", "1000.00000000"]
],
bids: [
["50000", "1000.00000000"],
["49500", "1000.00000000"],
["49000", "1000.00000000"]
]
};
interface IOrderBookResponse {
    asks: [`${number}`, `${number}`][];
    bids: [`${number}`, `${number}`][];
}

Properties

Properties

asks: [`${number}`, `${number}`][]

Array of ask orders, each represented by a tuple containing price and amount.

bids: [`${number}`, `${number}`][]

Array of bid orders, each represented by a tuple containing price and amount.