post https://api-sandboxdash.norcapsecurities.com/tapiv3/index.php/v3/getTradesForOffering
This method is used to retrieve the history of all trades (and details of the trades) created for an offering. The Offering ID is required as a request parameter to fetch the purchase history.
Request Parameters
Parameter | Required | Type | Description |
---|---|---|---|
clientID | yes | string | TransactAPI Client ID |
developerAPIKey | yes | string | TransactAPI Developer Key |
offeringId | yes | string | Offering ID that is generated by the API when a offering is created (createOffering) |
Sample Request
curl -k -X POST https://api-sandboxdash.norcapsecurities.com/tapiv3/index.php/v3/getTradesForOffering
-d developerAPIKey=somedeveloperkey
-d clientID=someclientid
-d offeringId=8139
Response Parameters
Parameter | Type | Description |
---|---|---|
statusCode | string | API Status Code |
statusDesc | string | API Status Description |
offeringPurchasedDetails | string | Returns an array of offering trades history |
Sample Response
{
"statusCode": "101",
"statusDesc": "Ok",
"Offering purchased details": [
{
"orderId": "134784730",
"accountId": "A1312164",
"transactionType": "WIRE",
"totalShares": "2.000000",
"unitPrice": "1.360000",
"totalAmount": "24.720000",
"orderStatus": "SETTLED",
"field1": "",
"field2": "",
"field3": ""
},
{
"orderId": "524164982",
"accountId": "A1312167",
"transactionType": "WIRE",
"totalShares": "2.000000",
"unitPrice": "1.360000",
"totalAmount": "24.720000",
"orderStatus": "SETTLED",
"field1": "",
"field2": "",
"field3": ""
},
{
"orderId": "276275731",
"accountId": "A347082",
"transactionType": "WIRE",
"totalShares": "2.000000",
"unitPrice": "1.360000",
"totalAmount": "24.720000",
"orderStatus": "CREATED",
"field1": "",
"field2": "",
"field3": ""
},
{
"orderId": "449412697",
"accountId": "A347082",
"transactionType": "WIRE",
"totalShares": "2.000000",
"unitPrice": "1.360000",
"totalAmount": "24.720000",
"orderStatus": "CREATED",
"field1": "",
"field2": "",
"field3": ""
},
{
"orderId": "575845839",
"accountId": "A347082",
"transactionType": "WIRE",
"totalShares": "2.000000",
"unitPrice": "1.360000",
"totalAmount": "24.720000",
"orderStatus": "FUNDED",
"field1": "",
"field2": "",
"field3": ""
},
{
"orderId": "1001111946",
"accountId": "A971432",
"transactionType": "CREDITCARD",
"totalShares": "2.000000",
"unitPrice": "1.360000",
"totalAmount": "24.720000",
"orderStatus": "CANCELED",
"field1": "",
"field2": "",
"field3": ""
},
{
"orderId": "1001122833",
"accountId": "A1436705",
"transactionType": "CHECK",
"totalShares": "2.000000",
"unitPrice": "1.360000",
"totalAmount": "24.720000",
"orderStatus": "CREATED",
"field1": "",
"field2": "",
"field3": ""
},
{
"orderId": "1001252716",
"accountId": "A1659066",
"transactionType": "WIRE",
"totalShares": "2000.000000",
"unitPrice": "1.360000",
"totalAmount": "2720.000000",
"orderStatus": "CREATED",
"field1": "",
"field2": "",
"field3": ""
}
]
}