FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Get historical Candle stick Data · Issue #893 · ccxt/node-binance-api · GitHub

Repository navigation

Get historical Candle stick Data #893

Description

I a using following code to get real-time candlestick data as long as the candle closes each minute

binance.websockets.candlesticks([trading_pair], "1m", (candlesticks) => {    
    let { e:eventType, E:eventTime, s:symbol, k:ticks } = candlesticks;
    let { o:open, h:high, l:low, c:close, v:volume, n:trades, i:interval, x:isFinal, q:quoteVolume, V:buyVolume, Q:quoteBuyVolume } = ticks;

I get here also 7 to 8 packets of candlestick data when candle is not closed along with last packet containing candle close price.
How I can modify the above code to get last say 100 candles close data when I start script for the first time then I can use above code to get the current candle close data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL