Coder Social home page Coder Social logo

Bybit withdraw issue. about ccxt HOT 13 CLOSED

gelono avatar gelono commented on May 27, 2024
Bybit withdraw issue.

from ccxt.

Comments (13)

gelono avatar gelono commented on May 27, 2024 1

I have resolved this issue. The correct name for Arbitrum One network is "ARBI".

from ccxt.

carlosmiei avatar carlosmiei commented on May 27, 2024

hello @gelono,
This is not directly related to CCXT, bybit has that chain suspended, so there's nothing ccxt can do about it.
image

from ccxt.

gelono avatar gelono commented on May 27, 2024

hello @gelono, This is not directly related to CCXT, bybit has that chain suspended, so there's nothing ccxt can do about it. image

Ok, thank you. I didn't see it.

from ccxt.

carlosmiei avatar carlosmiei commented on May 27, 2024

@gelono No problem, will close this issue then, feel free to reopen it if anything!

from ccxt.

gelono avatar gelono commented on May 27, 2024

I see on the exchange the ability to select the Arbitrum One and Arbitrum One (Bridget) networks. Arbitrum One - works. I was able to manually withdraw funds.

from ccxt.

carlosmiei avatar carlosmiei commented on May 27, 2024

@gelono I see, will check it again then

from ccxt.

carlosmiei avatar carlosmiei commented on May 27, 2024

@gelono Can you please post a verbose request?

await exchange.load_markets()
exchange.verbose = True

(please omit the sensitive parts like the apiKey/address/etc)

from ccxt.

gelono avatar gelono commented on May 27, 2024

await exchange.load_markets()

fetch Request: bybit POST https://api.bybit.com/v5/asset/withdraw/create RequestHeaders: {'Content-Type': 'application/json', 'X-BAPI-API-KEY': '', 'X-BAPI-TIMESTAMP': '1715092218664', 'X-BAPI-RECV-WINDOW': '5000', 'X-BAPI-SIGN': '', 'Referer': 'CCXT', 'Accept-Encoding': 'gzip, deflate'} RequestBody: {"coin":"USDC","amount":"1.99","address":"0x4Ae******************D7E2","timestamp":1715092218643,"chain":"ARBITRUM ONE"}

from ccxt.

carlosmiei avatar carlosmiei commented on May 27, 2024

@gelono Thanks, actually the problem might be with the casing of the network, can you try to do

params = {
    "chain": "Arbitrum One",  # using the exchange-specific id here
}
withdraw_result = await all_ex["Bybit"].withdraw(
    code="USDC",
    amount=usdc_amount,
    address=config.get("account_address"),
    params=params
)

from ccxt.

gelono avatar gelono commented on May 27, 2024

Where can I find the exchange-specific id?

from ccxt.

carlosmiei avatar carlosmiei commented on May 27, 2024

You can check the request field (chain) in the docs and the networks per currency inside the currency structure.

but you shouldn't need to worry about the exchange-specific id chain, network is the ccxt-unified one, but we have a small issue with the casing that will be fixed shortly

from ccxt.

gelono avatar gelono commented on May 27, 2024

I was able to withdraw USDT on the BSC network. I think that in the case of the Arbitrum One network I am passing the network name incorrectly:
{'network': 'Arbitrum One'}
Or CCTX's uppercase processing makes the name incorrect.

from ccxt.

sc0Vu avatar sc0Vu commented on May 27, 2024

@gelono cool, actually ccxt had set networks in currency, you can find in exchange.currency('USDT').

Let us know if you have other issue.

from ccxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.