Funexpert API


Login

Description (Work In Process)

rebalanceStockPortfolio API will rebalance your existing portfolio and return set of transaction.

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
session Id generated for user
userId
Required
string
Id of user to login
isin
Required
string
isin number
date
Required
string
date of purcahse/redeem of stock
price
Required
double
Price of stock
action
Required
string
Possible values of action are
  • Purchase
  • Redeem

Output :


Field
Description
Type
Description
userId
Required
string
Id of user to login
isin
Required
string
isin number
date
Required
string
date of purcahse/redeem of stock
price
Required
double
Price of stock
action
Required
string
Possible values of action are
  • Purchase
  • Redeem
rebalanceAction
Required
string
rebalance Action
  • No Change
  • PartialEntry
  • FullEntry
  • PartialExit
  • FullExit

Example Request/Response

For Rebalancing:


{

"appId": your app id,
"sessionId": Session Id
"userId": user Id
"transactionList":
{
"stockISIN": "53674776/3",
"price": "GROWTH",
"units": "1500.43",
"date": "2016-05-03"

}
}

On Success:


{

"success":true,
"transactions":
[
{
"action": "noChange",
"stockISIN": "53674776/3",
"units": "1500.43",
"price": "55.45",
"date": "2016-05-03"
},
{
"action": "partialEntry",
"stockISIN": "54344776/3",
"units": "1500.43",
"price": "55.45",
"date": "2016-08-27"
},
{
"action": "fullEntry",
"stockISIN": "54344776/3",
"units": "1500.43",
"price": "55.45",
"date": "2016-08-27"
},
{
"action": "partialExit",
"stockISIN": "54344776/3",
"units": "1500.43",
"price": "55.45",
"date": "2016-08-27"
},
{
"action": "fullExit",
"stockISIN": "54344776/3",
"units": "1500.43",
"price": "55.45",
"date": "2016-08-27"
}
]

}

On Failure:


{

"success": false,
"error":
{
"message": "Request failed, Please try again after some time.
"code": 991
}

}