-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
coinex fetch all deposit addresses using fetchDepositAddress
github-actions[bot] edited this page Jun 11, 2026
·
2 revisions
"use strict";
const ccxt = require ('../../ccxt')
console.log ('CCXT Version:', ccxt.version)
// https://github.com/ccxt/ccxt/issues/15405
async function main () {
const exchange = new ccxt.coinex ({
'apiKey': 'YOUR_API_KEY',
'secret': 'YOUR_API_SECRET',
});
// exchange.verbose = true // uncomment for debugging purposes
await exchange.loadMarkets ();
const addresses = {};
const promises = [];
async function fetchDepositAddress (currency, network) {
try {
const response = await exchange.fetchDepositAddress(currency, { 'network': network });
addresses[currency][network] = response['address']
}
catch (err) {
console.error(err)
}
}
const currencies = Object.keys (exchange.currencies);
for (const currency of currencies) {
const networks = Object.keys (exchange.currencies[currency]['networks']);
for (const network of networks) {
addresses[currency] = {};
promises.push (fetchDepositAddress (currency, network));
}
}
await Promise.all (promises);
console.log (addresses)
};
main ();(If the page is not being rendered for you, you can refer to the mirror at https://docs.ccxt.com/)
- Install
- Examples
- Manual
- CCXT Pro
- Contributing
- Supported Exchanges
- Exchanges By Country
- API Spec By Method
- FAQ
- Changelog
- Awesome
- API Spec by Exchange
- fetchCurrencies
- alpaca
- apex
- ascendex
- aster
- backpack
- bigone
- binance
- bingx
- bit2c
- bitbank
- bitbns
- bitfinex
- bitflyer
- bitget
- bithumb
- bitmart
- bitmex
- bitopro
- bitrue
- bitso
- bitstamp
- bitteam
- bittrade
- bitvavo
- blockchaincom
- blofin
- btcbox
- btcmarkets
- btcturk
- bullish
- bybit
- bydfi
- cex
- coinbase
- coinbaseexchange
- coinbaseinternational
- coincheck
- coinex
- coinmate
- coinmetro
- coinone
- coinsph
- coinspot
- cryptocom
- cryptomus
- deepcoin
- delta
- deribit
- derive
- digifinex
- dydx
- exmo
- extended
- foxbit
- gate
- gemini
- grvt
- hashkey
- hibachi
- hitbtc
- hollaex
- htx
- hyperliquid
- independentreserve
- indodax
- kraken
- krakenfutures
- kucoin
- fetchBidsAsks
- latoken
- lbank
- lighter
- luno
- mercado
- mexc
- modetrade
- ndax
- novadax
- okx
- onetrading
- p2b
- pacifica
- paradex
- paymium
- phemex
- poloniex
- tokocrypto
- toobit
- upbit
- weex
- whitebit
- woo
- woofipro
- xt
- zaif
- fetchStatus