Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ console.log(version, Object.keys(exchanges));

All-in-one browser bundle (dependencies included), served from a CDN of your choice:

- jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.9.30/dist/ccxt.browser.min.js
- unpkg: https://unpkg.com/ccxt@4.9.30/dist/ccxt.browser.min.js
- jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.9.31/dist/ccxt.browser.min.js
- unpkg: https://unpkg.com/ccxt@4.9.31/dist/ccxt.browser.min.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
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.9.30/dist/ccxt.browser.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.9.31/dist/ccxt.browser.min.js"></script>
console.log (ccxt.exchanges) // print all available exchanges
```

Expand Down
4 changes: 2 additions & 2 deletions cs/ccxt/api/bit24.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public partial class bit24 : Exchange
{
public bit24 (object args = null): base(args) {}

public async Task<object> publicGetProV3Markets (object parameters = null)
public async Task<object> publicGetProCapiV1Markets (object parameters = null)
{
return await this.callAsync ("publicGetProV3Markets",parameters);
return await this.callAsync ("publicGetProCapiV1Markets",parameters);
}

}
2 changes: 1 addition & 1 deletion cs/ccxt/base/Exchange.MetaData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace ccxt;
// file updated automatically by vss and export-exchanges
public partial class Exchange
{
public static string ccxtVersion = "4.9.30";
public static string ccxtVersion = "4.9.31";


public static List<string> exchanges = new List<string> { "abantether", "afratether", "alpaca", "apex", "arzinja", "arzplus", "ascendex", "bequant", "bigone", "binance", "binancecoinm", "binanceus", "binanceusdm", "bingx", "bit24", "bit2c", "bitbank", "bitbarg", "bitbns", "bitfinex", "bitflyer", "bitget", "bithumb", "bitimen", "bitir", "bitmart", "bitmex", "bitopro", "bitpin", "bitrue", "bitso", "bitstamp", "bitteam", "bittrade", "bitunix", "bitvavo", "blockchaincom", "blofin", "btcalpha", "btcbox", "btcmarkets", "btcturk", "bybit", "bydfi", "cafearz", "cex", "coinbase", "coinbaseadvanced", "coinbaseexchange", "coinbaseinternational", "coincatch", "coincheck", "coinex", "coinmate", "coinmetro", "coinone", "coinsph", "coinspot", "cryptocom", "cryptomus", "defx", "delta", "deribit", "derive", "digifinex", "ellipx", "eterex", "excoino", "exir", "exmo", "exnovin", "farhadexchange", "fmfwio", "foxbit", "gate", "gateio", "gemini", "hamtapay", "hashkey", "hibachi", "hitbtc", "hitobit", "hollaex", "htx", "huobi", "hyperliquid", "independentreserve", "indodax", "iranexchange", "jibitex", "kcex", "kifpoolme", "kraken", "krakenfutures", "kucoin", "kucoinfutures", "latoken", "lbank", "luno", "mazdax", "mercado", "mexc", "modetrade", "myokx", "ndax", "nobitex", "novadax", "oceanex", "okcoin", "okexchange", "okx", "okxus", "ompfinex", "onetrading", "oxfun", "p2b", "paradex", "paymium", "phemex", "pingi", "poloniex", "pooleno", "probit", "raastin", "ramzinex", "sarmayex", "sarrafex", "tabdeal", "tehran_exchange", "tetherland", "timex", "tokocrypto", "toobit", "tradeogre", "twox", "ubitex", "upbit", "vertex", "wallex", "wavesexchange", "whitebit", "woo", "woofipro", "xt", "yobit", "zaif", "zonda" };
Expand Down
6 changes: 3 additions & 3 deletions cs/ccxt/ccxt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<PropertyGroup>
<PackageId>ccxt</PackageId>
<Authors>Carlos, Kroitor, Carlo</Authors>
<PackageVersion>4.9.30</PackageVersion>
<AssemblyVersion>4.9.30</AssemblyVersion>
<FileVersion>4.9.30</FileVersion>
<PackageVersion>4.9.31</PackageVersion>
<AssemblyVersion>4.9.31</AssemblyVersion>
<FileVersion>4.9.31</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Description>Cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand Down
35 changes: 15 additions & 20 deletions dist/ccxt.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -46168,7 +46168,7 @@ class bit24 extends _abstract_bit24_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
'urls': {
'logo': 'https://cdn.arz.digital/cr-odin/img/exchanges/bit24/64x64.png',
'api': {
'public': 'https://bit24.cash/api/',
'public': 'https://rest.bit24.cash',
},
'www': 'https://bit24.cash/',
'doc': [
Expand All @@ -46178,7 +46178,7 @@ class bit24 extends _abstract_bit24_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
'api': {
'public': {
'get': {
'pro/v3/markets': 1,
'pro/capi/v1/markets': 1,
},
},
},
Expand All @@ -46198,7 +46198,7 @@ class bit24 extends _abstract_bit24_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
let page = 1;
const limit = 100; // check Bit24 docs for max allowed per page
while (true) {
const response = await this.publicGetProV3Markets(this.extend(params, {
const response = await this.publicGetProCapiV1Markets(this.extend(params, {
'page': page,
'per_page': limit,
}));
Expand Down Expand Up @@ -46263,10 +46263,8 @@ class bit24 extends _abstract_bit24_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
// last_price: "83669"
// }
// }
const base_coin = this.safeDict(market, 'base_coin');
let baseId = this.safeString(base_coin, 'symbol');
const quote_coin = this.safeDict(market, 'quote_coin');
let quoteId = this.safeString(quote_coin, 'symbol');
let baseId = this.safeString(market, 'base_coin_symbol');
let quoteId = this.safeString(market, 'quote_coin_symbol');
const base = this.safeCurrencyCode(baseId);
const quote = this.safeCurrencyCode(quoteId);
baseId = baseId.toLowerCase();
Expand Down Expand Up @@ -46340,7 +46338,7 @@ class bit24 extends _abstract_bit24_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
const limit = 100; // adjust if Bit24 docs show a different default
const result = {};
while (true) {
const response = await this.publicGetProV3Markets(this.extend(params, {
const response = await this.publicGetProCapiV1Markets(this.extend(params, {
'page': page,
'per_page': limit,
}));
Expand Down Expand Up @@ -46419,21 +46417,18 @@ class bit24 extends _abstract_bit24_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
// }
// },
const marketType = 'spot';
const base_coin = this.safeDict(ticker, 'base_coin', {});
let base_symbol = this.safeString(base_coin, 'symbol');
let base_symbol = this.safeString(ticker, 'base_coin_symbol');
base_symbol = base_symbol.toLowerCase();
const quote_coin = this.safeDict(ticker, 'quote_coin', {});
let quote_symbol = this.safeString(quote_coin, 'symbol');
let quote_symbol = this.safeString(ticker, 'quote_coin_symbol');
quote_symbol = quote_symbol.toLowerCase();
const marketId = base_symbol + '-' + quote_symbol;
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
const last = this.safeFloat(ticker, 'each_price', 0);
const markerInfo = this.safeDict(ticker, 'market_24h_information', {});
const change = this.safeFloat(markerInfo, 'change_percent', 0);
const minPrice = this.safeFloat(markerInfo, 'min_price', 0);
const maxPrice = this.safeFloat(markerInfo, 'max_price', 0);
const baseVolume = this.safeFloat(markerInfo, 'base_volume', 0);
const quoteVolume = this.safeFloat(markerInfo, 'quote_volume', 0);
const change = this.safeFloat(ticker, '24h_change', 0);
const minPrice = this.safeFloat(ticker, 'min_price', 0);
const maxPrice = this.safeFloat(ticker, 'max_price', 0);
const baseVolume = this.safeFloat(ticker, 'base_coin_volume', 0);
const quoteVolume = this.safeFloat(ticker, 'quote_coin_volume', 0);
return this.safeTicker({
'symbol': symbol,
'timestamp': undefined,
Expand Down Expand Up @@ -46461,7 +46456,7 @@ class bit24 extends _abstract_bit24_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"
const query = this.omit(params, this.extractParams(path));
let url = this.urls['api'][api] + '/' + this.implodeParams(path, params);
url = url + '?' + this.urlencode(query);
headers = { 'Content-Type': 'application/json' };
headers = { 'Content-Type': 'application/json', 'X-BIT24-APIKEY': 'bdfa2c8c971445d5a4a95c95a5a2a4c2' };
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
}
}
Expand Down Expand Up @@ -431442,7 +431437,7 @@ SOFTWARE.

//-----------------------------------------------------------------------------
// this is updated by vss.js when building
const ccxt_version = '4.9.30';
const ccxt_version = '4.9.31';
ccxt_src_base_Exchange_js_WEBPACK_IMPORTED_MODULE_0_/* .Exchange */ .k.ccxtVersion = ccxt_version;
//-----------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions dist/ccxt.browser.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ var xt$1 = require('./src/pro/xt.js');

//-----------------------------------------------------------------------------
// this is updated by vss.js when building
const version = '4.9.30';
const version = '4.9.31';
Exchange["default"].ccxtVersion = version;
const exchanges = {
'abantether': abantether["default"],
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "type": "commonjs" }
'{ "type": "commonjs" }'
33 changes: 14 additions & 19 deletions dist/cjs/src/bit24.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class bit24 extends bit24$1["default"] {
'urls': {
'logo': 'https://cdn.arz.digital/cr-odin/img/exchanges/bit24/64x64.png',
'api': {
'public': 'https://bit24.cash/api/',
'public': 'https://rest.bit24.cash',
},
'www': 'https://bit24.cash/',
'doc': [
Expand All @@ -99,7 +99,7 @@ class bit24 extends bit24$1["default"] {
'api': {
'public': {
'get': {
'pro/v3/markets': 1,
'pro/capi/v1/markets': 1,
},
},
},
Expand All @@ -119,7 +119,7 @@ class bit24 extends bit24$1["default"] {
let page = 1;
const limit = 100; // check Bit24 docs for max allowed per page
while (true) {
const response = await this.publicGetProV3Markets(this.extend(params, {
const response = await this.publicGetProCapiV1Markets(this.extend(params, {
'page': page,
'per_page': limit,
}));
Expand Down Expand Up @@ -184,10 +184,8 @@ class bit24 extends bit24$1["default"] {
// last_price: "83669"
// }
// }
const base_coin = this.safeDict(market, 'base_coin');
let baseId = this.safeString(base_coin, 'symbol');
const quote_coin = this.safeDict(market, 'quote_coin');
let quoteId = this.safeString(quote_coin, 'symbol');
let baseId = this.safeString(market, 'base_coin_symbol');
let quoteId = this.safeString(market, 'quote_coin_symbol');
const base = this.safeCurrencyCode(baseId);
const quote = this.safeCurrencyCode(quoteId);
baseId = baseId.toLowerCase();
Expand Down Expand Up @@ -261,7 +259,7 @@ class bit24 extends bit24$1["default"] {
const limit = 100; // adjust if Bit24 docs show a different default
const result = {};
while (true) {
const response = await this.publicGetProV3Markets(this.extend(params, {
const response = await this.publicGetProCapiV1Markets(this.extend(params, {
'page': page,
'per_page': limit,
}));
Expand Down Expand Up @@ -340,21 +338,18 @@ class bit24 extends bit24$1["default"] {
// }
// },
const marketType = 'spot';
const base_coin = this.safeDict(ticker, 'base_coin', {});
let base_symbol = this.safeString(base_coin, 'symbol');
let base_symbol = this.safeString(ticker, 'base_coin_symbol');
base_symbol = base_symbol.toLowerCase();
const quote_coin = this.safeDict(ticker, 'quote_coin', {});
let quote_symbol = this.safeString(quote_coin, 'symbol');
let quote_symbol = this.safeString(ticker, 'quote_coin_symbol');
quote_symbol = quote_symbol.toLowerCase();
const marketId = base_symbol + '-' + quote_symbol;
const symbol = this.safeSymbol(marketId, market, undefined, marketType);
const last = this.safeFloat(ticker, 'each_price', 0);
const markerInfo = this.safeDict(ticker, 'market_24h_information', {});
const change = this.safeFloat(markerInfo, 'change_percent', 0);
const minPrice = this.safeFloat(markerInfo, 'min_price', 0);
const maxPrice = this.safeFloat(markerInfo, 'max_price', 0);
const baseVolume = this.safeFloat(markerInfo, 'base_volume', 0);
const quoteVolume = this.safeFloat(markerInfo, 'quote_volume', 0);
const change = this.safeFloat(ticker, '24h_change', 0);
const minPrice = this.safeFloat(ticker, 'min_price', 0);
const maxPrice = this.safeFloat(ticker, 'max_price', 0);
const baseVolume = this.safeFloat(ticker, 'base_coin_volume', 0);
const quoteVolume = this.safeFloat(ticker, 'quote_coin_volume', 0);
return this.safeTicker({
'symbol': symbol,
'timestamp': undefined,
Expand Down Expand Up @@ -382,7 +377,7 @@ class bit24 extends bit24$1["default"] {
const query = this.omit(params, this.extractParams(path));
let url = this.urls['api'][api] + '/' + this.implodeParams(path, params);
url = url + '?' + this.urlencode(query);
headers = { 'Content-Type': 'application/json' };
headers = { 'Content-Type': 'application/json', 'X-BIT24-APIKEY': 'bdfa2c8c971445d5a4a95c95a5a2a4c2' };
return { 'url': url, 'method': method, 'body': body, 'headers': headers };
}
}
Expand Down
4 changes: 2 additions & 2 deletions go/v4/bit24_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

package ccxt

func (this *bit24) PublicGetProV3Markets (args ...interface{}) <-chan interface{} {
return this.callEndpointAsync("publicGetProV3Markets", args...)
func (this *bit24) PublicGetProCapiV1Markets (args ...interface{}) <-chan interface{} {
return this.callEndpointAsync("publicGetProCapiV1Markets", args...)
}
2 changes: 1 addition & 1 deletion go/v4/exchange_metadata.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package ccxt

var Version string = "4.9.30"
var Version string = "4.9.31"

var Exchanges []string = []string{ "Abantether", "Afratether", "Alpaca", "Apex", "Arzinja", "Arzplus", "Ascendex", "Bequant", "Bigone", "Binance", "Binancecoinm", "Binanceus", "Binanceusdm", "Bingx", "Bit24", "Bit2c", "Bitbank", "Bitbarg", "Bitbns", "Bitfinex", "Bitflyer", "Bitget", "Bithumb", "Bitimen", "Bitir", "Bitmart", "Bitmex", "Bitopro", "Bitpin", "Bitrue", "Bitso", "Bitstamp", "Bitteam", "Bittrade", "Bitunix", "Bitvavo", "Blockchaincom", "Blofin", "Btcalpha", "Btcbox", "Btcmarkets", "Btcturk", "Bybit", "Bydfi", "Cafearz", "Cex", "Coinbase", "Coinbaseadvanced", "Coinbaseexchange", "Coinbaseinternational", "Coincatch", "Coincheck", "Coinex", "Coinmate", "Coinmetro", "Coinone", "Coinsph", "Coinspot", "Cryptocom", "Cryptomus", "Defx", "Delta", "Deribit", "Derive", "Digifinex", "Ellipx", "Eterex", "Excoino", "Exir", "Exmo", "Exnovin", "Farhadexchange", "Fmfwio", "Foxbit", "Gate", "Gateio", "Gemini", "Hamtapay", "Hashkey", "Hibachi", "Hitbtc", "Hitobit", "Hollaex", "Htx", "Huobi", "Hyperliquid", "Independentreserve", "Indodax", "Iranexchange", "Jibitex", "Kcex", "Kifpoolme", "Kraken", "Krakenfutures", "Kucoin", "Kucoinfutures", "Latoken", "Lbank", "Luno", "Mazdax", "Mercado", "Mexc", "Modetrade", "Myokx", "Ndax", "Nobitex", "Novadax", "Oceanex", "Okcoin", "Okexchange", "Okx", "Okxus", "Ompfinex", "Onetrading", "Oxfun", "P2b", "Paradex", "Paymium", "Phemex", "Pingi", "Poloniex", "Pooleno", "Probit", "Raastin", "Ramzinex", "Sarmayex", "Sarrafex", "Tabdeal", "Tehran_exchange", "Tetherland", "Timex", "Tokocrypto", "Toobit", "Tradeogre", "Twox", "Ubitex", "Upbit", "Vertex", "Wallex", "Wavesexchange", "Whitebit", "Woo", "Woofipro", "Xt", "Yobit", "Zaif", "Zonda" }
2 changes: 1 addition & 1 deletion js/ccxt.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
import * as errors from './src/base/errors.js';
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
declare const version = "4.9.30";
declare const version = "4.9.31";
import abantether from './src/abantether.js';
import afratether from './src/afratether.js';
import alpaca from './src/alpaca.js';
Expand Down
2 changes: 1 addition & 1 deletion js/ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
//-----------------------------------------------------------------------------
// this is updated by vss.js when building
const version = '4.9.30';
const version = '4.9.31';
Exchange.ccxtVersion = version;
//-----------------------------------------------------------------------------
import abantether from './src/abantether.js';
Expand Down
2 changes: 1 addition & 1 deletion js/src/abstract/bit24.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { implicitReturnType } from '../base/types.js';
import { Exchange as _Exchange } from '../base/Exchange.js';
interface Exchange {
publicGetProV3Markets(params?: {}): Promise<implicitReturnType>;
publicGetProCapiV1Markets(params?: {}): Promise<implicitReturnType>;
}
declare abstract class Exchange extends _Exchange {
}
Expand Down
Loading
Loading