Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "cli/commands/orderbook"

Index

Type aliases

Bucket

Bucket: object

Type declaration

  • price: number
  • quantity: number

FormattedOrderbook

FormattedOrderbook: object

Type declaration

  • pairId: string
  • rows: string[][]

OrderbookJson

OrderbookJson: object

Type declaration

Variables

Const COLUMNS

COLUMNS: number[] = [19, 19, 19, 19]

Const COLUMNS_IN_ORDER_SIDE

COLUMNS_IN_ORDER_SIDE: number = COLUMNS.length / 2

Const HEADER

HEADER: object[] = [{ content: colors.green('Buy'), colSpan: 2 },{ content: colors.red('Sell'), colSpan: 2 },]

Const SECONDARY_HEADER

SECONDARY_HEADER: string[] = [colors.green('Quantity'),colors.green('Price'),colors.red('Price'),colors.red('Quantity'),]

Const command

command: "orderbook [pair_id] [precision]" = "orderbook [pair_id] [precision]"

Const describe

describe: "display the order book, with orders aggregated per price point" = "display the order book, with orders aggregated per price point"

Functions

Const addSide

  • addSide(buckets: Bucket[], isBuy?: boolean): string[]

Const createOrderbook

  • createOrderbook(orders: ListOrdersResponse.AsObject, precision: number): object[]

Const createOrderbookSide

  • createOrderbookSide(orders: Order.AsObject[], precision?: number): object[]

Const createTable

  • createTable(): GenericTable<(undefined | null | string | number | false | true | CellOptions)[]>

Const displayJson

  • displayJson(orders: ListOrdersResponse.AsObject, argv: Arguments): void

Const displayOrderbook

Const displayTables

  • displayTables(orders: ListOrdersResponse.AsObject, argv: Arguments): void

Const getPriceBuckets

  • getPriceBuckets(orders: Order.AsObject[], count?: number): number[]

Const getQuantityForBuckets

  • getQuantityForBuckets(orders: Order.AsObject[], priceBuckets: number[], filledBuckets?: Bucket[]): Bucket[]

Const handler

  • handler(argv: Arguments): void

Object literals

Const builder

builder: object

pair_id

pair_id: object

describe

describe: string = "trading pair for which to retrieve the order book"

type

type: string = "string"

precision

precision: object

default

default: number = 5

describe

describe: string = "the number of digits following the decimal point"

type

type: string = "number"

Generated using TypeDoc