cobinhood-rx
Version:
CobinhoodRx is a rxjs node wrapper for the CobinhoodRx Api.
28 lines (19 loc) • 739 B
Markdown
Get candle data for the market specified.
| Parameter | Type | Example |
| ---------------------- | -------------- | ----------------------- |
| market | string | 'BTC-USDT' |
| timeframe | TimeFrameValue | TimeFrameValue. OneHour |
| startPeriod (Optional) | Date | new Date('2018-02-02') |
| endPeriod (Optional) | Date | new Date('2018-02-10') |
`Observable<Candle[]>`
```js
cobinhoodRx.Chart.getCandles('BTC-USDT', TimeframeValue.SixHour, new Date('2018-02-02'))
.subscribe(
console.log(data);
});
```