Funexpert API


GetStockPortfolioFromPDF

Description (Work In Process)

GetStockPortfolioFromPDF API will parse the PDF and return set of transactions.

Type

Post

Resource URL

https://api.fundexpert.in/rest/consumer/login

Parameters

Input :


Field
Required/Optional
Type
Description
appId
Required
string
The unique id given to consumer
sessionId
Required
string
stockPDF
Required
string
Path of Stock pdf
pdfPassword
Required
string
password of PDF

Output :


Field
Required/Optional
Type
Description
stockISIN
Required
string
465789765/7
units
Required
string
1500.09
price
Required
string
55.09
date
Required
string
01/01/1990

Example Response

For GetStockPortfolioFromPDF:


{

"appId": your app id,
"sessionId": session Id,
"pdfPath": /pdf/stocks/stockPDF.pdf,
"pdfPassword": PDF Password

}

On Success:


{

"success":true,
"transactions":
[
{
"stockISIN": "53674776/3",
"buyPrice": "GROWTH",
"units": "1500.43",
"buyDate": "2016-05-03"
},
{
"stockISIN": "53674776/3",
"buyPrice": "GROWTH",
"units": "1500.43",
"buyDate": "2016-05-03"
},
{
"stockISIN": "53674776/3",
"buyPrice": "GROWTH",
"units": "1500.43",
"buyDate": "2016-05-03"
},
]

}

On Failure:


{

"success": false,
"error":
{
"message": "PDF parsing failed, try again after some time.",
"code": 771
}

}