Funexpert API


Login

Description (Work In Process)

rebalanceMutualfundPortfolio 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
unique Id given by consumer to user
sessionId
Required
string
session Id generated for user
userId
Required
string
Id of user to login
folioNumber
Required
string
unique number of holding
camsSchemeCode
Required
string
unique number of mutual fund
optionType
Required
string
Possible values of Option type are
  • GROWTH
  • DIVIDEND PAYOUT
  • DIVIDEND REPurchase
  • DIVIDEND SWEEP
units
Required
double
user transaction detail
nav
Required
double
nav of mutual fund on the day of purchase
action
Required
string
Possible values of action are
  • Purchase
  • Redeem
healthScore
Required
string
HealthScore of user
  • Aggressive
  • Moderately Aggressive
  • Balanced
  • Moderately Conservative
  • Conservative

Output :


Field
Required/Optional
Type
Description
userId
Required
string
Id of user to login
folioNumber
Required
string
unique number of holding
camsSchemeCode
Required
string
unique number of mutual fund
optionType
Required
string
Possible values of Option type are
  • GROWTH
  • DIVIDEND PAYOUT
  • DIVIDEND REINVEST
  • DIVIDEND SWEEP
units
Required
double
user transaction detail
nav
Required
double
nav of mutual fund on the day of purchase
action
Required
string
Possible values of action are
  • Purchase
  • Redeem
healthScore
Required
string
HealthScore of user
  • Aggressive
  • Moderately Aggressive
  • Balanced
  • Moderately Conservative
  • Conservative
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

{
"folioNumber": "53674776/3",
"camsSchemeCode": "53724549",
"optionType": "GROWTH",
"units": "1500.43",
"nav": "55.45",
"date": "2016-05-03"
},
{
"folioNumber": "54344776/3",
"camsSchemeCode": "52343259",
"optionType": "REINVEST",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
},
{
"folioNumber": "54344776/3",
"camsSchemeCode": "5323459",
"optionType": "FullEntry",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
},
{
"folioNumber": "54344776/3",
"camsSchemeCode": "5332259",
"optionType": "REINVEST",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
},
{
"folioNumber": "54344776/3",
"camsSchemeCode": "5347259",
"optionType": "REINVEST",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
}
]

}
}

On Success:


{

"success":true,
"transactions":
[
{
"rebalanceAction": "noChange",
"folioNumber": "53674776/3",
"camsSchemeCode": "537456649",
"optionType": "GROWTH",
"units": "1500.43",
"nav": "55.45",
"date": "2016-05-03"
},
{
"rebalanceAction": "partialEntry",
"folioNumber": "54344776/3",
"camsSchemeCode": "53259",
"optionType": "REINVEST",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
},
{
"rebalanceAction": "fullEntry",
"folioNumber": "54344776/3",
"camsSchemeCode": "53255679",
"optionType": "FullEntry",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
},
{
"rebalanceAction": "partialExit",
"folioNumber": "54344776/3",
"camsSchemeCode": "532557789",
"optionType": "REINVEST",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
},
{
"rebalanceAction": "fullExit",
"folioNumber": "54344776/3",
"camsSchemeCode": "35453259",
"optionType": "REINVEST",
"units": "1500.43",
"nav": "55.45",
"date": "2016-08-27"
}
]

}

On Failure:


{

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

}