Dividend Splitter

Dividend Splitter

Dev URL

examnple of POST body

{
    "PlatformName": "test",
    "DividendValue": 200.1,
    "Ticker": "TST",
    "Goals": [
        {
            "GoalID": "123",
            "GoalDetails": [
                {
                    "Ticker": "ABC",
                    "Units": 2.33,
                    "MarketPrice": 100.23
                },
                {
                    "Ticker": "TST",
                    "Units": 1.55,
                    "MarketPrice": 44.6788
                }
            ]
        },
        {
            "GoalID": "456",
            "GoalDetails": [
                {
                    "Ticker": "ABC",
                    "Units": 2.33,
                    "MarketPrice": 100.23
                },
                {
                    "Ticker": "TST",
                    "Units": 1.88,
                    "MarketPrice": 44.6788
                },
                {
                    "Ticker": "TST",
                    "Units": 1.28,
                    "MarketPrice": 44.6788
                }
            ]
        }
    ]
}

example of HTTP response body

{
    "DividendSplitWarning": "",
    "SplitDividendPerGoal": [
        {
            "GoalID": "123",
            "Ticker": "TST",
            "DividendValue": 65.85
        },
        {
            "GoalID": "456",
            "Ticker": "TST",
            "DividendValue": 134.25
        }
    ]
}

HTTP statuscode
- 200 OK
- > 400 Error

example of HTTP response body for error

{
    "message": [
        "getaddrinfo ENOTFOUND a3d81e2d5312211ea92810267e068098-107785571.ap-southeast-1.elb.amazonaws.com"
    ],
    "value": 500
}
Language
Authorization
Bearer
Click Try It! to start a request and see the response here!