UNPKG

@hydro-protocol/hydro-client-js

Version:
40 lines (39 loc) 926 B
import { BigNumber } from "bignumber.js"; /** * Contains the latest market data about a specific market */ export declare class Ticker { /** * The market this ticker represents, e.g. "HOT-WETH" */ readonly marketId: string; /** * The price of the last trade on this market */ readonly price: BigNumber; /** * The 24 hour volume of this market */ readonly volume: BigNumber; /** * The lowest current ask price on this market */ readonly ask: BigNumber; /** * The highest current bid price on this market */ readonly bid: BigNumber; /** * The lowest price in the last 24 hours */ readonly low: BigNumber; /** * The highest price in the last 24 hours */ readonly high: BigNumber; /** * The last time this ticker was updated */ readonly updatedAt: Date; constructor(json: any); }