Login
Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • Home
  • Knowledgebase
  • Blog

Order Cycle

home/Knowledge Base/Technical Support/API/BackEnd API's/VBL/VertexFX Bridge LP API/VertexFX Bridge LP API Help/Order Cycle/Market Order Cycle

Market Order Cycle

13 views 0 Updated on December 21, 2021 hybrid-solutions

The market order has specific cycle in VertexFX Bridge application, that should be implemnted in your LP class as follows:

1- You have to override theNewMarketOrder function, which should return either a success or fail result.

if Succeded then

Return New TransResult(True)

In this case the Bridge will wait for step 2 or else,

Return New TransResult(False, "FAILING MESSAGE")

And in this case the cycle has finished.

2. When you receive server response for the order, you have to call:

MyBase.OrderState.MarketOrderIDReceived(OrderId, BOOrderID)
MyBase.OrderState.MarketOrderFailed(OrderId, "FAILING REASON")

In the case of receiving order ID. In this case, the Bridge will wait for step 3 or else,

In the case if order execution failed and the cycle has finished.

3. When you receive order acceptance message, you have to call:

MyBase.OrderState.MarketOrderAccepted(OrderId, FilledPrice)

Or to call:

MyBase.OrderState.MarketOrderRejected(OrderId, "REJECTION REASON")

When receiving order rejection message. Then the cycle has finished.


See Also

  • Limit Order Cycle
  • Close Order Cycle
  • Close by Hedge Cycle


Back to Bridge LP API Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

Limit Order Cycle  

About
VertexFX Trader has a closed-loop trading structure with Backoffice dealing desk, Client Terminals, Dedicated Hosting, White Labelling and Bridging Capabilities. Through VertexFX Risk Management Bridge...
Categories
  • Release Notes
  • Technical Support
  • VertexFX Pro Setup
  • Mobile Trader
  • Lite VertexFX Mobile Trader
Community
  • Blog
  • Media Center
Need Support?
If you need any further help, don't hesitate to send a support request to our support team.
Contact Support
  • Privacy Policy
  • Brokers Terms
  • Traders EULA
  • ISV Terms
  • Plugins EULA
  • Copyright 2023 hybridsolutions.com. All Rights Reserved.