📂Portfolio

Gets the balance of the projects in the portfolio of the wallet.

get

This route returns the balance of the projects in portfolio of the wallet from the blockchain.The route first queries the database for all the projects in portfolio.The route then returns balances of the wallet on those projects using the blockchain.

Responses
200
Successful
application/json
get
GET /api/v1/portfolio/balance HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
  "ok": true,
  "result": {
    "portfolio": [
      {
        "id": "11839fbd-0b72-4704-86cb-04db0ca40a13",
        "symbol": "ETH",
        "name": "ethereum",
        "price": 786,
        "price_change_daily": 786,
        "price_change_daily_positive": true,
        "holdings": 786,
        "balance": 786
      }
    ]
  }
}

Adds project to the portfolio of the wallet.

post

This route adds the given project to portfolio.The route first queries and finds the project in our database.The route then adds the given project to the portfolio of the wallet.

Path parameters
projectIdstringRequired
Responses
200
Successful
application/json
post
POST /api/v1/portfolio/{projectId} HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
  "ok": true,
  "result": {}
}

Last updated