This API is used to fetch latest live last traded price (LastRate) along with highest price for the day (High), lowest price for the day (Low), previous close (PClose) and Scrip Code (token).
Base URL https://Openapi.5paisa.com/VendorsAPI/Service1.svc/MarketFeed
API Name MarketFeed
Requires Authentication? No
Request format JSON
Response Format? JSON
Method Type POST
Description This API is used to Fetch market feed data for the given request.
Version of the API No
Pre-requisites HTTP authentication
URI MarketFeed
| Sr.No. | Field Name | Description | Data Type | Examples |
|---|---|---|---|---|
| 1 | Count | Pass the ClientCode. | long | 1 |
| 2 | MarketFeedData | Array of MarketFeedDataListReq | List | - |
| 3 | ClientLoginType | Pass the ClientLoginType. | Integer | 0 |
| 4 | LastRequestTime | Pass the LastRequestTime. | DateTime | /Date(0)/ |
| 5 | RefreshRate | Pass the RefreshRate. | String | H |
*Note:- All fields are mandatory (cannot be empty)
| Sr.No. | Field Name | Description | Data Type | Examples |
|---|---|---|---|---|
| 1 | Exch | Pass the Exch. | String | N |
| 2 | ExchType | Pass the ExchType. | String | C |
| 3 | Symbol | Pass the Symbol. | String | BHEL |
| 4 | Expiry | Pass the Expiry. | String | |
| 5 | StrikePrice | Pass the StrikePrice. | Double | 0 |
| 6 | OptionType | Pass the OptionType. | String |
*Note:- All fields are mandatory (cannot be empty)
| Sr.No. | Field Name | Description | Data Type | Examples |
|---|---|---|---|---|
| 1 | Status | Returns the status of the response. | Integer | |
| 2 | Message | Returns the message of the response. | String | |
| 3 | CacheTime | Returns the CacheTime of the response. | Integer | |
| 4 | TimeStamp | Returns the TimeStamp of the response. | DateTime | |
| 5 | Data | Trade Details of that particular client | Array Of MarketFeedDataListRes | - |
| Sr.No. | Field Name | Description | Data Type |
|---|---|---|---|
| 1 | Exch | Returns the Exch. | Char |
| 2 | ExchType | Returns the ExchType. | Char |
| 3 | Token | Returns the Scrip Code. | Integer |
| 4 | LastRate | Returns the LastRate. | Double |
| 5 | TotalQty | Returns the TotalQty. | Integer |
| 6 | High | Returns the High. | Double |
| 7 | Low | Returns the Low. | Double |
| 8 | PClose | Returns the PClose. | Double |
| 9 | AvgRate | Returns the AvgRate. | Double |
| 10 | Time | Returns the Time. | Integer |
| 11 | TickDt | Returns the TickDt. | Date |
{
"head": {
"appName": "5PRASHMI",
"appVer": "1.0",
"key": "WelW2CTD0srtUUDaQzs2e22TeydRlLv3",
"osName": "Android",
"requestCode": "5PMF",
"userId": "r8aokDeH54g",
"password": "qo6eKEuVFNe"
},
"body": {
"Count": 1,"MarketFeedData":[{"Exch":"N",
"ExchType":"C","Symbol":"BHEL","Expiry":"","StrikePrice":"0","OptionType":""},{"Exch":"N","ExchType":"D","Symbol":"INFY 29 Oct 2020","Expiry":"20201029","StrikePrice":"0","OptionType":"XX"}],"ClientLoginType":0,"LastRequestTime":"/Date(0)/","RefreshRate":"H"}
}
{
"body": {
"CacheTime": 5,
"Data": [
{
"AvgRate": 0,
"BidQty": 5,
"BidRate": 42.3,
"Exch": "N",
"ExchType": "C",
"ExposureCategory": "B",
"High": 0,
"LastQty": 1,
"LastRate": 35.65,
"Low": 0,
"OffQty": 0,
"OffRate": 0,
"OpenRate": 35.65,
"PClose": 35.65,
"Series": "EQ",
"Symbol": "BHEL",
"TBidQ": 1,
"TOffQ": 1,
"TickDt": "/Date(1601277126000+0530)/",
"Time": 24126,
"Token": 438,
"TotalQty": 1
},
{
"AvgRate": 917,
"BidQty": 40,
"BidRate": 924.65,
"Exch": "N",
"ExchType": "D",
"ExposureCategory": "",
"High": 917,
"LastQty": 1200,
"LastRate": 917,
"Low": 917,
"OffQty": 40,
"OffRate": 988.75,
"OpenRate": 917,
"PClose": 917,
"Series": "XX",
"Symbol": "INFY 29 OCT 2020",
"TBidQ": 32400,
"TOffQ": 169200,
"TickDt": "/Date(1601307128000+0530)/",
"Time": 54128,
"Token": 50944,
"TotalQty": 40800
}
],
"Message": "No Record Found",
"Status": 1,
"TimeStamp": "/Date(1601362456951+0530)/"
},
"head": {
"responseCode": "5PMF",
"status": "0",
"statusDescription": "Success"
}
}
{
"body": {
"CacheTime": 5,
"Data": [
{
"AvgRate": 0,
"BidQty": 5,
"BidRate": 42.3,
"Exch": "N",
"ExchType": "C",
"ExposureCategory": "B",
"High": 0,
"LastQty": 1,
"LastRate": 35.65,
"Low": 0,
"OffQty": 0,
"OffRate": 0,
"OpenRate": 35.65,
"PClose": 35.65,
"Series": "EQ",
"Symbol": "BHEL",
"TBidQ": 1,
"TOffQ": 1,
"TickDt": "/Date(1601277126000+0530)/",
"Time": 24126,
"Token": 438,
"TotalQty": 1
}
],
"Message": "No Record Found",
"Status": 1,
"TimeStamp": "/Date(1601362494275+0530)/"
},
"head": {
"responseCode": "5PMF",
"status": "0",
"statusDescription": "Success"
}
}
{
"body": {
"CacheTime": 5,
"Data": [],
"Message": "No Record Found",
"Status": 1,
"TimeStamp": "/Date(1601339400000+0530)/"
},
"head": {
"responseCode": "5PMF",
"status": "0",
"statusDescription": "Success"
}
}
{
"body": null,
"head": {
"responseCode": "5PMF",
"status": "2",
"statusDescription": "Invalid head parameters."
}
}