Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "src/helpers/currency"

Index

Type aliases

MarketData

MarketData: {}

Type declaration

  • [key: string]: MarketAuth

Functions

createCurrencyAmount

createCurrencyPrice

Const getPrecisionFromMarketString

  • getPrecisionFromMarketString(exp: string): number
  • Parameters

    • exp: string

    Returns number

mapMarketsForNashProtocol

  • mapMarketsForNashProtocol(markets: {}): MarketData
  • Parameters

    • markets: {}

    Returns MarketData

normalizeAmountForMarket

normalizeAmountForMarketPrecision

  • normalizeAmountForMarketPrecision(amount: string, tradeSize: number): string
  • Normalizes the given amount based on the given trade size.

    Parameters

    • amount: string
    • tradeSize: number

    Returns string

normalizePriceForMarket

Generated using TypeDoc