Get Commission & VAT
POST/v1.1/order/commission-vat
This is used to get the tentative commission and VAT for a particular buy or sell order before submission. This tentative values and actual values after the trade is completed can be slightly different.
Supported Asset Classes
- Equity
- Option
- Fixed Income
Request Body
{
"accountNumber": "P000128310",
"quantity": 10,
"price": 5,
"exchange": "NSDQ",
"symbol": "AAPL",
"tradingSession": "REG",
"orderType": 1,
"securityType": "CS",
"orderValue": 50
}
|
|
Request Body
{
"accountNumber": "P000128310",
"symbol": "AAPL\\23F30\\65.0",
"exchange": "OPRA",
"price": 10,
"quantity": 1000,
"orderType": 1,
"securityType": "OPT"
}
|
|
Request Body
{
"accountNumber": "P000284369",
"symbol": "ANF 8 ¾ 07/15/25",
"exchange": "BOND",
"amount": 2000,
"orderType": "2",
"orderSide": 1,
"price": 50,
"tif": 0,
"expireDate": "2023/11/10",
"securityType": "BND",
"orderValue": 1000
}
|
|
Request
- application/json
Body
accountNumber stringrequired
Security account number
price numberrequired
quantity number
exchange stringrequired
symbol stringrequired
tradingSession string
Default value: REG
For trading Sessions - Master data > Get Support Trading Sessions
orderType integerrequired
For Order types - Master Data > Get Exchange Order Types
securityType stringrequired
Possible values: [CS
, OPT
, BND
]
CS ; common stock/ equity , OPT ; option , BND ; fixed income
orderValue number
Responses
- 200
- 401
OK
- application/json
- Schema
- Example (from schema)
- example
Schema
status stringrequired
reason stringrequired
rejectCode integer
Find error codes here
commission numberrequired
vat numberrequired
{
"status": "string",
"reason": "string",
"rejectCode": 0,
"commission": 0,
"vat": 0
}
{
"status": "SUCCESS",
"reason": "commission and vat retrieved",
"rejectCode": 0,
"commission": 5,
"vat": 1
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Invalid Token
- Expired Token
Schema
timestamp string
status stringrequired
error stringrequired
message string
path string
rejectCode stringrequired
{
"timestamp": "string",
"status": "string",
"error": "string",
"message": "string",
"path": "string",
"rejectCode": "string"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Invalid Token",
"path": "/api/v1.1/commission",
"rejectCode": "1008"
}
{
"timestamp": "2023-12-28T09:51:50.682Z",
"status": "401",
"error": "Unauthorized",
"message": "Expired Token",
"path": "/api/v1.1/commission",
"rejectCode": "1007"
}
Loading...
Is this page helpful for you?