Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

x.Stream.subscribe.getCandles bug (caused by xOpenHub server side logic) #17

@peterszombati

Description

@peterszombati

x.Stream.subscribe.getCandles doesn't working if you didn't do a price history request for specific symbol
example with BITCOIN:

x.Stream.subscribe.getCandles('BITCOIN')
        .catch(() => { console.error('subscribe for BITCOIN failed')});

It won't work.
You have to do a request to BITCOIN price history then subscribe for candles
example with BITCOIN:

x.getPriceHistory({
  symbol: 'BITCOIN',
  period: PERIOD_FIELD.PERIOD_M1,
  ticks: -1
})

x.Stream.subscribe.getCandles('BITCOIN')
        .catch(() => { console.error('subscribe for BITCOIN failed')});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions