Skip to content

Commit

Permalink
Merge pull request #470 from crypto-chassis/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
chassis-community authored May 25, 2024
2 parents 5ce8450 + 433382a commit 11853fa
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 93 deletions.
7 changes: 3 additions & 4 deletions include/ccapi_cpp/ccapi_macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
#define CCAPI_OPEN_PRICE "OPEN_PRICE"
#endif
#ifndef CCAPI_HIGH_PRICE
#define CCAPI_HIGH_PRICE "HIG_PRICEH"
#define CCAPI_HIGH_PRICE "HIGH_PRICE"
#endif
#ifndef CCAPI_LOW_PRICE
#define CCAPI_LOW_PRICE "LOW_PRICE"
Expand Down Expand Up @@ -354,9 +354,8 @@
#define CCAPI_WEBSOCKET_GATEIO_PERPETUAL_FUTURES_CHANNEL_CANDLESTICKS "futures.candlesticks"
#define CCAPI_WEBSOCKET_CRYPTOCOM_CHANNEL_TRADE "trade.{instrument_name}"
#define CCAPI_WEBSOCKET_CRYPTOCOM_CHANNEL_BOOK "book.{instrument_name}.{depth}"
#define CCAPI_WEBSOCKET_BYBIT_CHANNEL_TRADE "trade.{symbol}"
#define CCAPI_WEBSOCKET_BYBIT_CHANNEL_BOOK_TICKER "bookticker.{symbol}"
#define CCAPI_WEBSOCKET_BYBIT_CHANNEL_DEPTH "orderbook.40.{symbol}"
#define CCAPI_WEBSOCKET_BYBIT_CHANNEL_TRADE "publicTrade.{symbol}"
#define CCAPI_WEBSOCKET_BYBIT_CHANNEL_DEPTH "orderbook.{depth}.{symbol}"
#define CCAPI_WEBSOCKET_BYBIT_CHANNEL_KLINE "kline.{interval}.{symbol}"
#define CCAPI_WEBSOCKET_BYBIT_CHANNEL_KLINE_2 "kline"
#define CCAPI_WEBSOCKET_BYBIT_DERIVATIVES_CHANNEL_TRADE "publicTrade.{symbol}"
Expand Down
2 changes: 1 addition & 1 deletion include/ccapi_cpp/ccapi_util_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ int ceilSearch(const std::vector<T>& c, int low, int high, T x) {
if (x <= c[low]) {
return low;
}
for (i = low; i < high; i++) {
for (i = low; i < high - 1; i++) {
if (c[i] == x) {
return i;
}
Expand Down
Loading

0 comments on commit 11853fa

Please sign in to comment.