Mayson Monorepo Documentation
    Preparing search index...

    Module @mayson/trading

    @mayson/trading - Shared trading utilities for the BIL platform

    This package provides exchange implementations and trading constants that can be shared between the API and Worker apps.

    Namespaces

    Decimal

    Classes

    Exchange
    BinanceExchange
    BybitExchange
    CoinbaseExchange
    GhostExchange
    Decimal

    Type Aliases

    IntervalValue
    QuoteAsset
    AllowedTicker

    Variables

    INTERVALS
    INTERVAL_NAMES
    QUOTE_ASSETS
    DEFAULT_QUOTE_ASSET
    ALLOWED_TICKERS
    SUPPORTED_EXCHANGES

    Functions

    parseInterval
    formatInterval
    isQuoteAsset
    isAllowedTicker
    isSupportedExchange
    createExchange
    createAndInitializeExchange
    toDecimal
    decimalToString
    decimalToNumber
    isPositive
    isZeroOrDust
    calculatePercentage
    calculatePercentageChange
    ensureNotNegative