Skip to content

Commit d62c775

Browse files
authored
fix ccxt#17749: watchOHLCV don't have timeFrame param in docs
fix: added `timeFrame` param to `watchOHLCV` examples for js and python
1 parent 100f258 commit d62c775

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/ccxt.pro.manual.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ If your application is not very time-critical, you can still subscribe to OHLCV
14561456
if (exchange.has['watchOHLCV']) {
14571457
while (true) {
14581458
try {
1459-
const candles = await exchange.watchOHLCV (symbol, since, limit, params)
1459+
const candles = await exchange.watchOHLCV (symbol, timeframe, since, limit, params)
14601460
console.log (new Date (), candles)
14611461
} catch (e) {
14621462
console.log (e)
@@ -1472,7 +1472,7 @@ If your application is not very time-critical, you can still subscribe to OHLCV
14721472
if exchange.has['watchOHLCV']:
14731473
while True:
14741474
try:
1475-
candles = await exchange.watch_ohlcv(symbol, since, limit, params)
1475+
candles = await exchange.watch_ohlcv(symbol, timeframe, since, limit, params)
14761476
print(exchange.iso8601(exchange.milliseconds()), candles)
14771477
except Exception as e:
14781478
print(e)

0 commit comments

Comments
 (0)