Open KindSpidey opened 1 year ago
Hello @KindSpidey can you please show us a verbose log with the raw request+response?
Hello @KindSpidey can you please show us a verbose log with the raw request+response?
I found an answer. Its not you, its MEXC. They require to add every address of every network to their white list.
Can you check, is OKX available? Because I've just created a new API V5, and ccxt refuses to work with OKX, sending me ccxt.base.errors.NetworkError: okex5 GET https://www.okx.com/api/v5/asset/currencies
my code is
okx = ccxt.okex5({
"apiKey": config.OKX_API_KEY,
"secret": config.OKX_SECRET_KEY,
"password": config.OKX_PASSWORD
})
changing okex5 to okx doesnt help, same error
Hi @KindSpidey
It worked for me, would you like to paste more detail of this error?
$ node examples/js/cli okex5 currencies USDT
Node.js: v14.16.0
CCXT v2.1.69
{
'1INCH': {
id: '1INCH',
numericId: undefined,
code: '1INCH',
precision: 0.000001
},
...
}
Hi @KindSpidey
It worked for me, would you like to paste more detail of this error?
$ node examples/js/cli okex5 currencies USDT Node.js: v14.16.0 CCXT v2.1.69 { '1INCH': { id: '1INCH', numericId: undefined, code: '1INCH', precision: 0.000001 }, ... }
my code
okx = ccxt.okex5({
"apiKey": config.OKX_API_KEY,
"secret": config.OKX_SECRET_KEY,
"password": config.OKX_PASSWORD
})
okx.fetch_balance()
and i got in pycharm
ccxt.base.errors.NetworkError: okex5 GET https://www.okx.com/api/v5/asset/currencies
and this on website {"msg":"Request header OK-ACCESS-KEY can not be empty.","code":"50103"}
Check if your API keys are loaded correctly by printing them out and paste your verbose output:
- https://github.com/ccxt/ccxt/wiki/FAQ#what-is-required-to-get-help
print(‘CCXT Version:’, ccxt.version)
print(config.OKX_API_KEY, len(config.OKX_API_KEY), ‘chars’)
okx = ccxt.okex5({ "apiKey": config.OKX_API_KEY, "secret": config.OKX_SECRET_KEY, "password": config.OKX_PASSWORD })
okx.load_markets()
okx.verbose = True okx.fetch_balance()
On Mon, 21 Nov 2022 at 20:15, KindSpidey @.***> wrote:
Hi @KindSpidey https://github.com/KindSpidey
It worked for me, would you like to paste more detail of this error?
$ node examples/js/cli okex5 currencies USDT Node.js: v14.16.0 CCXT v2.1.69 { '1INCH': { id: '1INCH', numericId: undefined, code: '1INCH', precision: 0.000001 }, ... }
my code
okx = ccxt.okex5({ "apiKey": config.OKX_API_KEY, "secret": config.OKX_SECRET_KEY, "password": config.OKX_PASSWORD }) okx.fetch_balance()
and i got in pycharm ccxt.base.errors.NetworkError: okex5 GET https://www.okx.com/api/v5/asset/currencies and this on website {"msg":"Request header OK-ACCESS-KEY can not be empty.","code":"50103"}
— Reply to this email directly, view it on GitHub https://github.com/ccxt/ccxt/issues/15746#issuecomment-1322466461, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4A5UFQ2DH3MDCSXY4URTWJO335ANCNFSM6AAAAAASFH6AZ4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
fetch Request: okex5 GET https://www.okx.com/api/v5/asset/currencies RequestHeaders: {'OK-ACCESS-KEY': ''IT EXISTS I CHANGED IT', 'OK-ACCESS-PASSPHRASE': 'IT EXISTS I CHANGED IT, 'OK-ACCESS-TIMESTAMP': '2022-11-21T18:24:44.247Z', 'OK-ACCESS-SIGN': 'SAME', 'User-Agent': 'python-requests/2.28.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} RequestBody: None
My request is not empty
Because of the error
ccxt.base.errors.ExchangeError: mexc {"code":10212,"msg":"This withdrawal address is not on the commonly used address list or has been invalidated"}
What does it mean and what should I do? Trying to transfer usdt from MEXC to Kucoin P. S. One more question. Sometimes I gotwhy? And what does it mean?