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.
quantity or orderValue is required. if quantity > 0, order will place using quantity not orderValue.
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 integerrequired
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?