Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Basic Calculator

  • 02-01-2017 10:43AM
    #1
    Registered Users, Registered Users 2 Posts: 1,686 ✭✭✭


    Hi All,

    Happy 2017, I hope everyone is having a good time.
    I am a software developer and I like giving back to the community. I started investing recently and I developed a simple calculator API that might be able to help out some beginners to calculate the break even share price using Degiro.

    This might be a useless tool for some but potentially a useful tool for others.
    MOD: Feel free to delete if this is not allowed or move if I am posting in the wrong section.

    This API currently only works for US shares.
    It requires 3 input from the end-user: Share Price, Share Count and Type
    It will return the break even values to the end users.

    Full API link example:
    https://investment-calculator-api.appspot.com/_ah/api/calculator/v1/degiro?share_price=107.750&share_count=10&type=US

    Replace:
    investment-calculator-api.appspot.com/_ah/api/calculator/v1/degiro?share_price={price}&share_count={count}&type=US

    Expected Results:
    {
    "break_even_share_price_change": 0.108,
    "break_even_share_price_percentage_change": 0.1,
    "total_fees": 1.08,
    "portfolio_value": 1077.5,
    "type": "US",
    "share_price": 107.75,
    "portfolio_value_after_fees": 1076.42,
    "share_count": "10",
    "break_even_share_price": 107.858,
    "kind": "calculator#calculatorItem",
    "etag": "\"K2NXo111zMaHxkNJ8ETkW3bYbPc/poGMX2hpguWLiu8hwsUwOSe1G2o\""
    }

    I am also able to provide the source code.

    Regards
    RS


Comments

  • Registered Users, Registered Users 2 Posts: 1 frangonve


    Thanks for your help!
    Please can you provide the source code? I'm very interested.
    Cheers

    Francisco


Advertisement
Advertisement