ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
32.66k stars 7.49k forks source link

I cant withdraw money #15746

Open KindSpidey opened 1 year ago

KindSpidey commented 1 year ago

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 got

mexc GET https://www.mexc.com/open/api/v2/market/coin/list 503 Service Unavailable <HTML><HEAD><TITLE>Error</TITLE></HEAD><BODY>
An error occurred while processing your request.<p>
Reference&#32;&#35;236&#46;2dc5df17&#46;1668869390&#46;5cadbac
</BODY></HTML>

why? And what does it mean?

carlosmiei commented 1 year ago

Hello @KindSpidey can you please show us a verbose log with the raw request+response?

KindSpidey commented 1 year ago

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.

KindSpidey commented 1 year ago

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

sc0Vu commented 1 year ago

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
  },
  ...
}
KindSpidey commented 1 year ago

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"}

kroitor commented 1 year ago

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: @.***>

KindSpidey commented 1 year ago

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