UNPKG

@hydro-protocol/hydro-client-js

Version:
35 lines (34 loc) 971 B
import { BigNumber } from "bignumber.js"; /** * Represents a "candle" on a trading chart, meant to graph trading price and * volume over time. Each candle is a specific period of time in the history * of the exchange, and contains data about price fluctuations and volume * of token traded during that period. */ export declare class Candle { /** * The amount of token traded over this time period */ readonly volume: BigNumber; /** * The price at the very beginning of this time period */ readonly open: BigNumber; /** * The price at the very end of this time period */ readonly close: BigNumber; /** * The highest price reached during this time period */ readonly high: BigNumber; /** * The lowest price reached during this time period */ readonly low: BigNumber; /** * The beginning of the time range */ readonly time: Date; constructor(json: any); }