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

VertexFX BackOffice WCF Service

home/Knowledge Base/Technical Support/API/BackEnd API's/VBL/VertexFX BackOffice WCF Service/VertexFX BackOffice WCF Service/ClosePosition

ClosePosition

94 views 0 Updated on September 20, 2023 hybrid-solutions

Syntax

 Public Function Cl osePosition(AccountID As Long, TicketID As Long, Amount As decimal, Price As decimal, RefAskPrice As decimal,RefBidPrice As decimal, Commission As decimal, Optional UserDefinedDate As String = "")  As String

Description

The ClosePosition operation is used to close the position that belongs to the given account number.

Request Parameters

Name Description Required
AccountID
  • Account number to close the position for.
  • Type: Long
  • Default: None
  • Constraints: Must be valid account Id and accessible by logged in dealer
Yes
TicketID
  • The position number to be closed
  • Type: Long
  • Default: None
Yes
Amount
  • The position amount to be closed
  • Type: Decimal
  • Default: None
Yes
Price
  • At price, value to close position on it
  • Type: Decimal
  • Default: None
Yes
RefAskPrice
  • Ask price value for the Reference Symbol
  • Type: Decimal
  • Default: None
Yes
RefBidPrice
  • Bid Price value for the reference Symbol
  • Type: Decimal
  • Default: none
Yes
Commission
  • The commission value that wants to use when closing the position
  • Type: Decimal
  • Default: None
Yes
UserDefinedDate
  • Trade close time
  • Type: String
  • Default: Is mean now
  • Must be in the format (DD:MM:yyyy HH:mm:ss)
No


Response Elements

Name Description
Result The operation returns the closed ticket number in case of success, otherwise, an explicit error code is returned

See Also

  • ManualDeleteLimit
  • GetChatOrder
  • AcceptOrder


VertexFX BackOffice WCF Service Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  ManualUpdateLimit

ManualDeleteLimit  

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.