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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canceling orders with ID's #14

Open
TradingToolCrypto opened this issue Jan 15, 2024 · 3 comments
Open

Canceling orders with ID's #14

TradingToolCrypto opened this issue Jan 15, 2024 · 3 comments

Comments

@TradingToolCrypto
Copy link
Owner

TradingToolCrypto commented Jan 15, 2024

bool MEXC_Cancel_Trade(string sym, string orderId, string clientOrderId) export

input a string

bug in logic (check binance api library )
if(orderId>0)

@TradingToolCrypto
Copy link
Owner Author

if(orderId!="") || if(clientOrderId!="")

@TradingToolCrypto
Copy link
Owner Author

TradingToolCrypto commented Jan 16, 2024

Orders

  • call exchange rest api directly.
    • within function call
      a. save the order information to global variables
      b. create text object label, and buttons to close the orders from the chart.
  1. the creation of chart_objects are within the open source file ExchangeHelper.mqh
  2. the creation of global_variables exist within the *Exchanges.ex5 libraries.

@TradingToolCrypto
Copy link
Owner Author

  1. exchange orderID : order_id chart object
  2. exchange clientOrderID : client_order_id chart object
  3. when canceling orders, either the client or order ids can be used. if client_order_id exists, then use this as default else use the order_id.
  4. a client_order_id is created automatically when using the CBP Framework.

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

No branches or pull requests

1 participant