• Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX
  • Home
  • Knowledgebase
  • Blog
  • My Account
  • Try VertexFX

VertexFX Client WCF Service

home/Knowledge Base/Technical Support/API/Client API's/VTL/VertexFX Client WCF Service./VertexFX Client WCF Service/CloseByHedge

CloseByHedge

35 views 0 Updated on August 28, 2022 hybrid-solutions

Syntax

CloseByHedge (Ticket1 As long, Ticket2 As Long, AccountID As Long, Lots As Decimal)

Description

The CloseByHedge operation is used to close a buy position with a sell position fully or partially with the same symbol if hedging is allowed.


Request Parameters

Name Description Required
Ticket1
  • First position ticket identifier.
  • Type: Long.
  • Default: None.
  • Constraints: Must be a valid ticket identifier.
Yes
Ticket2
  • Second position ticket identifier.
  • Type: Long.
  • Default: None.
  • Constraints: Must be a valid ticket identifier.
Yes
AccountId
  • The intended account identifier.
  • Type: Long.
  • Default: None.
  • Constraints: Must be a valid account ID, and accessible by a logged-in client.
Yes
Lots
  • The number of lots to be closed.
  • Type: Decimal.
  • Default: None.
  • Constraints: Must be equal to or less than the position’s lots.
Yes


Response Elements

Name Description
Result This method returns the new Ticket ID in case of success.

Otherwise, see Error Codes.
Type: JSON object as String.

See Also

  • CancelLimitOrder
  • CancelSLTPOrder
  • GetAccounts


VertexFX WCF Service Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  ClientRejectOrder

CancelLimitOrder  

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 2024 hybridsolutions.com. All Rights Reserved.