diff --git a/CHANGELOG.md b/CHANGELOG.md
index 240262a32b5e..cdc698eb2b52 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+### 2.8.65 (2023-03-01)
+
+
+### Bug Fixes
+
+* **bybit:** fix fetchOHLCV since ([6025fdc](https://github.com/ccxt/ccxt/commit/6025fdc00b19a280da078832502066fc2bc0f3e5))
+
### 2.8.64 (2023-03-01)
### 2.8.63 (2023-03-01)
diff --git a/README.md b/README.md
index 87564ba43fd5..d046a1f3fa01 100644
--- a/README.md
+++ b/README.md
@@ -208,13 +208,13 @@ console.log (ccxt.exchanges) // print all available exchanges
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
-* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.64/dist/ccxt.browser.js
-* unpkg: https://unpkg.com/ccxt@2.8.64/dist/ccxt.browser.js
+* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.65/dist/ccxt.browser.js
+* unpkg: https://unpkg.com/ccxt@2.8.65/dist/ccxt.browser.js
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
```HTML
-
+
```
Creates a global `ccxt` object:
diff --git a/ccxt.js b/ccxt.js
index af1a5659dfe1..eedcbb942e71 100644
--- a/ccxt.js
+++ b/ccxt.js
@@ -37,7 +37,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building
-const version = '2.8.64'
+const version = '2.8.65'
Exchange.ccxtVersion = version
diff --git a/dist/ccxt.browser.js b/dist/ccxt.browser.js
index 8d15cb1576de..d4319607a3d3 100644
--- a/dist/ccxt.browser.js
+++ b/dist/ccxt.browser.js
@@ -47,7 +47,7 @@ const Exchange = require ('./js/base/Exchange')
//-----------------------------------------------------------------------------
// this is updated by vss.js when building
-const version = '2.8.64'
+const version = '2.8.65'
Exchange.ccxtVersion = version
@@ -68286,7 +68286,7 @@ module.exports = class bybit extends Exchange {
if (limit === undefined) {
limit = 200; // default is 200 when requested with `since`
}
- if (since === undefined) {
+ if (since !== undefined) {
request['start'] = since;
}
if (limit !== undefined) {
diff --git a/package-lock.json b/package-lock.json
index 8718ffa8cdfe..d60f6c003a3d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "ccxt",
- "version": "2.8.64",
+ "version": "2.8.65",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ccxt",
- "version": "2.8.64",
+ "version": "2.8.65",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 74af748b50c9..71a80dcdc8fa 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ccxt",
- "version": "2.8.64",
+ "version": "2.8.65",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
diff --git a/php/Exchange.php b/php/Exchange.php
index 132a5157870d..6c98fe7e6001 100644
--- a/php/Exchange.php
+++ b/php/Exchange.php
@@ -36,7 +36,7 @@
use BN\BN;
use Exception;
-$version = '2.8.64';
+$version = '2.8.65';
// rounding mode
const TRUNCATE = 0;
@@ -55,7 +55,7 @@
class Exchange {
- const VERSION = '2.8.64';
+ const VERSION = '2.8.65';
private static $base58_alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
private static $base58_encoder = null;
diff --git a/php/async/Exchange.php b/php/async/Exchange.php
index 25a7be1b0b67..fe8213a1cd6c 100644
--- a/php/async/Exchange.php
+++ b/php/async/Exchange.php
@@ -34,11 +34,11 @@
include 'Throttle.php';
-$version = '2.8.64';
+$version = '2.8.65';
class Exchange extends \ccxt\Exchange {
- const VERSION = '2.8.64';
+ const VERSION = '2.8.65';
public $browser;
public $marketsLoading = null;
diff --git a/php/async/bybit.php b/php/async/bybit.php
index 8f828b261205..a1cb9ff073d6 100644
--- a/php/async/bybit.php
+++ b/php/async/bybit.php
@@ -1999,7 +1999,7 @@ public function fetch_ohlcv($symbol, $timeframe = '1m', $since = null, $limit =
if ($limit === null) {
$limit = 200; // default is 200 when requested with `$since`
}
- if ($since === null) {
+ if ($since !== null) {
$request['start'] = $since;
}
if ($limit !== null) {
diff --git a/php/bybit.php b/php/bybit.php
index e9e143f637d5..bd112e918243 100644
--- a/php/bybit.php
+++ b/php/bybit.php
@@ -1968,7 +1968,7 @@ public function fetch_ohlcv($symbol, $timeframe = '1m', $since = null, $limit =
if ($limit === null) {
$limit = 200; // default is 200 when requested with `$since`
}
- if ($since === null) {
+ if ($since !== null) {
$request['start'] = $since;
}
if ($limit !== null) {
diff --git a/python/README.md b/python/README.md
index 87564ba43fd5..d046a1f3fa01 100644
--- a/python/README.md
+++ b/python/README.md
@@ -208,13 +208,13 @@ console.log (ccxt.exchanges) // print all available exchanges
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
-* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.64/dist/ccxt.browser.js
-* unpkg: https://unpkg.com/ccxt@2.8.64/dist/ccxt.browser.js
+* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.65/dist/ccxt.browser.js
+* unpkg: https://unpkg.com/ccxt@2.8.65/dist/ccxt.browser.js
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
```HTML
-
+
```
Creates a global `ccxt` object:
diff --git a/python/ccxt/__init__.py b/python/ccxt/__init__.py
index d8389f5e31c5..06cdaf0c8c1b 100644
--- a/python/ccxt/__init__.py
+++ b/python/ccxt/__init__.py
@@ -22,7 +22,7 @@
# ----------------------------------------------------------------------------
-__version__ = '2.8.64'
+__version__ = '2.8.65'
# ----------------------------------------------------------------------------
diff --git a/python/ccxt/async_support/__init__.py b/python/ccxt/async_support/__init__.py
index db2aa211a402..8e933995c85f 100644
--- a/python/ccxt/async_support/__init__.py
+++ b/python/ccxt/async_support/__init__.py
@@ -4,7 +4,7 @@
# -----------------------------------------------------------------------------
-__version__ = '2.8.64'
+__version__ = '2.8.65'
# -----------------------------------------------------------------------------
diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py
index e108db52b78f..000f129ac434 100644
--- a/python/ccxt/async_support/base/exchange.py
+++ b/python/ccxt/async_support/base/exchange.py
@@ -2,7 +2,7 @@
# -----------------------------------------------------------------------------
-__version__ = '2.8.64'
+__version__ = '2.8.65'
# -----------------------------------------------------------------------------
diff --git a/python/ccxt/async_support/bybit.py b/python/ccxt/async_support/bybit.py
index ed535635ebd7..4f2a719338a7 100644
--- a/python/ccxt/async_support/bybit.py
+++ b/python/ccxt/async_support/bybit.py
@@ -1946,7 +1946,7 @@ async def fetch_ohlcv(self, symbol, timeframe='1m', since=None, limit=None, para
duration = self.parse_timeframe(timeframe)
if limit is None:
limit = 200 # default is 200 when requested with `since`
- if since is None:
+ if since is not None:
request['start'] = since
if limit is not None:
request['limit'] = limit # max 1000, default 1000
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index 78c05f03e969..596589f3afd7 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -4,7 +4,7 @@
# -----------------------------------------------------------------------------
-__version__ = '2.8.64'
+__version__ = '2.8.65'
# -----------------------------------------------------------------------------
diff --git a/python/ccxt/bybit.py b/python/ccxt/bybit.py
index 7483ba37ebbd..86ae9644bb60 100644
--- a/python/ccxt/bybit.py
+++ b/python/ccxt/bybit.py
@@ -1944,7 +1944,7 @@ def fetch_ohlcv(self, symbol, timeframe='1m', since=None, limit=None, params={})
duration = self.parse_timeframe(timeframe)
if limit is None:
limit = 200 # default is 200 when requested with `since`
- if since is None:
+ if since is not None:
request['start'] = since
if limit is not None:
request['limit'] = limit # max 1000, default 1000
diff --git a/python/ccxt/pro/__init__.py b/python/ccxt/pro/__init__.py
index f64e5e7309ac..1998ead19bef 100644
--- a/python/ccxt/pro/__init__.py
+++ b/python/ccxt/pro/__init__.py
@@ -4,7 +4,7 @@
# ----------------------------------------------------------------------------
-__version__ = '2.8.64'
+__version__ = '2.8.65'
# ----------------------------------------------------------------------------
diff --git a/python/ccxt/pro/base/exchange.py b/python/ccxt/pro/base/exchange.py
index 9facaeede798..9b6bd0262ce6 100644
--- a/python/ccxt/pro/base/exchange.py
+++ b/python/ccxt/pro/base/exchange.py
@@ -2,7 +2,7 @@
# -----------------------------------------------------------------------------
-__version__ = '2.8.64'
+__version__ = '2.8.65'
# -----------------------------------------------------------------------------
diff --git a/python/package.json b/python/package.json
index 74af748b50c9..71a80dcdc8fa 100644
--- a/python/package.json
+++ b/python/package.json
@@ -1,6 +1,6 @@
{
"name": "ccxt",
- "version": "2.8.64",
+ "version": "2.8.65",
"description": "A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges",
"main": "./ccxt.js",
"unpkg": "dist/ccxt.browser.js",
diff --git a/wiki/Install.md b/wiki/Install.md
index 38b13c6c4dfc..11498ae7d168 100644
--- a/wiki/Install.md
+++ b/wiki/Install.md
@@ -40,13 +40,13 @@ console.log (ccxt.exchanges) // print all available exchanges
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
-* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.64/dist/ccxt.browser.js
-* unpkg: https://unpkg.com/ccxt@2.8.64/dist/ccxt.browser.js
+* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@2.8.65/dist/ccxt.browser.js
+* unpkg: https://unpkg.com/ccxt@2.8.65/dist/ccxt.browser.js
You can obtain a live-updated version of the bundle by removing the version number from the URL (the `@a.b.c` thing) — however, we do not recommend to do that, as it may break your app eventually. Also, please keep in mind that we are not responsible for the correct operation of those CDN servers.
```HTML
-
+
```
Creates a global `ccxt` object: