Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bybit v5 API #24

Open
TradingToolCrypto opened this issue Mar 21, 2024 · 2 comments
Open

Bybit v5 API #24

TradingToolCrypto opened this issue Mar 21, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@TradingToolCrypto
Copy link
Owner

TradingToolCrypto commented Mar 21, 2024

Bybit has 4 types 馃憤 These market types are

  • inverse
  • linear
  • spot
  • options

Enter the market type into the robot under API KEYS where it says LiveDemo :

  • TestNet is no longer working from my experience (bybit website doesn't allow api key creation)

Wallets

Unified api has two wallets : Unified and Contract ( inverse perps: which is the Crypto Base Asset markets such as BTCUSD ETHUSD, etc). The data is returned to the user via GlobalVariables (mt5 platform local storage)

Unified

  • GlobalVarible : Bybit

Contract

  • GlobalVariable : Bybit_C

Charts

  • spot market suffix : byb
  • linear markets suffix : byl
  • inverse markets suffix : byi

If any charts are created for Bybit, the returning exchangeNumber = 2 ( unified api v5)

@TradingToolCrypto TradingToolCrypto added the documentation Improvements or additions to documentation label Mar 21, 2024
@TradingToolCrypto
Copy link
Owner Author

Robot: CB_Charts supports Bybit spot market by default.

  • exchange number: 2
  • exchange name : bybit

@TradingToolCrypto
Copy link
Owner Author

TradingToolCrypto commented Apr 10, 2024

Available functions :

todo

conditional orders:

    • modify trade_conditional
    • cancel_trade_stop
    • open_trade_stop
    • open_trade_stopLimit

v5

How to create conditional order:

  • use the exist endpoint and pass another params : triggerPrice

When submitting an order, if triggerPrice is set, the order will be automatically converted into a conditional order. In addition, the conditional order does not occupy the margin. If the margin is insufficient after the conditional order is triggered, the order will be cancelled.

sl , tp (not supported)

Note: The TP/SL of Spot Trading is different from that of Perpetual and Futures Contracts.

https://bybit-exchange.github.io/docs/v5/order/create-order

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant