Order Placing API

Test this service via Swagger: https://app.swaggerhub.com/apis-docs/Synnetra4/FXWebAPISOA/1.7

During implementation we provide dedicated Swagger documentation pointing to the Sandbox environment of the customer

For architecture overview check:

REST API for SOAClient facing REST API

/FXWebAPI/OrderPlacing

POST https://demo.fxcib.com/api/FXWebAPI/OrderPlacing

This service allows to place FX Order. It can be used as client facing service after Oauth2 authentication or service behind firewall used by SOA Before placing FX Order your SOA can for example: verify account balance, check/block limit

Request Body

Name
Type
Description

orderId

string

Unique OrderID

customerCode

string

Used by SOA when placing order in the name of the customer after internal verification.

limitRate

number

Use "." as decimal separator

timeInForce

number

For Limit Orders always = 4

expireTime

string

Date formal: dd/MM/yyyy HH:MM

orderType

string

Possible values: Limit and Stoploss

amount

string

Use "." as decimal separator

currency

string

Currency Code ISO 4217 standard.

pair

string

Currency Pair code in CCY/CCY format Ex. EUR/USD

side

number

Buy = 1, Sell = 2

key

string

Key provided by FXWebAPI

{
  "OrderType": "Limit",
  "ExpireTime": "2019-10-21T16:00:00",
  "TimeInForce": "\u0004",
  "OrderStatus": "Unknown",
  "CurrencyPair": 0,
  "Id": 77,
  "Side": "Buy",
  "Amount": 32.5,
  "Price": 1.4,
  "SettlementDate": "2019-10-24T00:00:00",
  "Company": "SYNNETRA.HTML.TEST",
  "ExecutionTimeStamp": "2019-10-22T15:48:00.2097911+00:00",
  "Currency": "EUR",
  "QuoteReqIDvalue": "5n7658m6v45c4v"
}

Request Example:

{
  "orderId": "5n7658m6v45c4v",
  "customerCode": "SYNNETRA.HTML.TEST",
  "limitRate": 1.4,
  "timeInForce": 4,
  "expireTime": "21/10/2019 16:00",
  "orderType": "Limit",
  "amount": 32.5,
  "currency": "EUR",
  "pair": "EUR/USD",
  "side": 1,
  "request": {
    "key": "X445Acg7tkxsy7HfZKHgDUKxKW9g4RWazM9NtjWTwdU6nxtQGKgKTMNmSdDcPECHGpvz3PnNVDH4H2Mq"
  }
}

Last updated