• 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/NewPosition

NewPosition

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

Syntax

 Public Function NewPosition (AccountID As Long, BuySell As Long, Amount As decimal, SymbolID As Long, Price As decimal, Interest As Decimal, Optional Note As String = "", Optional UserDefinedDate As String = "") As String

Description

The NewPosition operation is used to open a new position on specific a symbol for the given account number.

Request Parameters

Name Description Required
AccountID
  • Account identifier to open position for
  • Type: Long
  • Default: None
  • Constraints: Must be valid account Id and accessible by logged in dealer
Yes
BuySell
  • The open position type
  • Type: Integer
  • Default: none
  • Can be one of the following:
    1 for buy type
    -1 for sell type
Yes
Amount
  • Position lots value
  • Type: Double
  • Default: None
Yes
SymbolID
  • Trade symbol identifier
  • Type: Integer
  • Default: None
Yes
Price
  • Open trade price value
  • Type: Double
  • Default: none
Yes
Interest
  • Open trade Interest value
  • Type: Decimal
  • Default: none
Yes
Note
  • Custom String used to mark the open position
  • Type: String
  • Default: empty string.
No
UserDefinedDate
  • Trade open time
  • Type: String
  • Default: which means now
  • Constraints: Must be in the format (DD/MM/yyyy HH:mm:ss)
No


Response Elements

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

See Also

  • ManualNewLimit
  • UpdatePosition
  • ManualUpdateLimit


VertexFX BackOffice WCF Service Index

Was this helpful?

Yes  No
Leave A Comment Cancel reply

  ManualNewLimit

ManualUpdateLimit  

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.