Trade Book
https://connects.torusdigital.com/api/v1/trade/bookHeader Parameters
Name
Value
Request Parameter
Name
Value
Mandatory
Description
Request
curl --location 'https://connects.torusdigital.com/api/v1/trade/book' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"source": "N"
}'Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.post("connects.torusdigital.com/api/v1/trade/book")
.header("Authorization", "Bearer {{token}}")
.header("Content-Type", "application/json")
.body("{\r\n \"source\": \"N\"\r\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://connects.torusdigital.com/api/v1/trade/book"
method := "POST"
payload := strings.NewReader(`{
"source": "N"
}`)
client := &http.Client{}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Authorization", "Bearer {{token}}")
req.Header.Add("Content-Type", "application/json")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}{
"data": [
{
"algo_id": "0",
"client_id": "TOR001",
"display_name": "VODAFONE IDEA LIMITED",
"encash_flag": "N",
"exch_order_no": "1400000000177679",
"exch_order_time": "2024-05-28 10:50:52",
"exch_trade_time": "2024-05-28 10:50:52",
"exchange": "NSE",
"exchange_inst_name": "Other",
"expiry_date": "0001-01-01",
"instrument": "EQUITY",
"isin": "INE669E01016",
"last_updated_time": "2024-05-28 10:50:52",
"lot_size": 1,
"mkt_pro_flag": "N",
"mkt_pro_value": 0,
"mkt_type": "NL",
"opt_type": "XX",
"order_date_time": "2024-05-28 10:50:51",
"order_no": "1141240528106",
"order_type": "MKT",
"pan_no": "BBTPS7354E",
"participant_type": "B",
"placed_by": "CUSTOMER",
"placed_by_entity_id": "TOR001",
"product": "C",
"product_name": "CNC",
"quantity": 2,
"row_no": 0,
"security_id": "14366",
"segment": "E",
"series": "EQ",
"settlor": "90245",
"strike_price": 0,
"symbol": "IDEA",
"tick_size": 5,
"trade_no": "80103634",
"trade_value": 29.3,
"traded_price": 14.65,
"txn_type": "B"
}
],
"message": "Success",
"status": "success"
}Parameter
Description
Last updated