Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "orderbook/errors"

Index

Variables

Object literals

Variables

Const codesPrefix

codesPrefix: string = errorCodesPrefix.ORDERBOOK

Object literals

Const errorCodes

errorCodes: object

CURRENCY_ALREADY_EXISTS

CURRENCY_ALREADY_EXISTS: string = codesPrefix.concat('.6')

CURRENCY_CANNOT_BE_REMOVED

CURRENCY_CANNOT_BE_REMOVED: string = codesPrefix.concat('.5')

CURRENCY_DOES_NOT_EXIST

CURRENCY_DOES_NOT_EXIST: string = codesPrefix.concat('.4')

CURRENCY_MISSING_ETHEREUM_CONTRACT_ADDRESS

CURRENCY_MISSING_ETHEREUM_CONTRACT_ADDRESS: string = codesPrefix.concat('.11')

DUPLICATE_ORDER

DUPLICATE_ORDER: string = codesPrefix.concat('.2')

EXCEEDING_LIMIT

EXCEEDING_LIMIT: string = codesPrefix.concat('.14')

INSUFFICIENT_OUTBOUND_BALANCE

INSUFFICIENT_OUTBOUND_BALANCE: string = codesPrefix.concat('.12')

LOCAL_ID_DOES_NOT_EXIST

LOCAL_ID_DOES_NOT_EXIST: string = codesPrefix.concat('.9')

MARKET_ORDERS_NOT_ALLOWED

MARKET_ORDERS_NOT_ALLOWED: string = codesPrefix.concat('.8')

MIN_QUANTITY_VIOLATED

MIN_QUANTITY_VIOLATED: string = codesPrefix.concat('.13')

ORDER_NOT_FOUND

ORDER_NOT_FOUND: string = codesPrefix.concat('.3')

PAIR_ALREADY_EXISTS

PAIR_ALREADY_EXISTS: string = codesPrefix.concat('.7')

PAIR_DOES_NOT_EXIST

PAIR_DOES_NOT_EXIST: string = codesPrefix.concat('.1')

QUANTITY_DOES_NOT_MATCH

QUANTITY_DOES_NOT_MATCH: string = codesPrefix.concat('.10')

Const errors

errors: object

CURRENCY_ALREADY_EXISTS

  • CURRENCY_ALREADY_EXISTS(currency: string): object

CURRENCY_CANNOT_BE_REMOVED

  • CURRENCY_CANNOT_BE_REMOVED(currency: string, pairId: string): object
  • Parameters

    • currency: string
    • pairId: string

    Returns object

    • code: string
    • message: string

CURRENCY_DOES_NOT_EXIST

  • CURRENCY_DOES_NOT_EXIST(currency: string): object

CURRENCY_MISSING_ETHEREUM_CONTRACT_ADDRESS

  • CURRENCY_MISSING_ETHEREUM_CONTRACT_ADDRESS(currency: string): object

DUPLICATE_ORDER

  • DUPLICATE_ORDER(localId: string): object

EXCEEDING_LIMIT

  • EXCEEDING_LIMIT(currency: string, amount: number, limit: number): object
  • Parameters

    • currency: string
    • amount: number
    • limit: number

    Returns object

    • code: string
    • message: string

INSUFFICIENT_OUTBOUND_BALANCE

  • INSUFFICIENT_OUTBOUND_BALANCE(currency: string, amount: number, availableAmount: number): object
  • Parameters

    • currency: string
    • amount: number
    • availableAmount: number

    Returns object

    • code: string
    • message: string

LOCAL_ID_DOES_NOT_EXIST

  • LOCAL_ID_DOES_NOT_EXIST(localId: string): object

MARKET_ORDERS_NOT_ALLOWED

  • MARKET_ORDERS_NOT_ALLOWED(): object

MIN_QUANTITY_VIOLATED

  • MIN_QUANTITY_VIOLATED(id: string): object

ORDER_NOT_FOUND

  • ORDER_NOT_FOUND(orderId: string, peerPubKey?: undefined | string): object
  • Parameters

    • orderId: string
    • Optional peerPubKey: undefined | string

    Returns object

    • code: string
    • message: string

PAIR_ALREADY_EXISTS

  • PAIR_ALREADY_EXISTS(pairId: string): object

PAIR_DOES_NOT_EXIST

  • PAIR_DOES_NOT_EXIST(pairId: string): object

QUANTITY_DOES_NOT_MATCH

  • QUANTITY_DOES_NOT_MATCH(requestedQuantity: number, orderQuantity: number): object
  • Parameters

    • requestedQuantity: number
    • orderQuantity: number

    Returns object

    • code: string
    • message: string

Generated using TypeDoc