📂Portfolio
Needs Wallet Authentication
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
401
Unauthorized
application/json
500
Internal Server Error
application/json
401001
application/json
401002
application/json
401003
application/json
401004
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
}
]
}
}
Needs Wallet Authentication
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
401
Unauthorized
application/json
404
Not Found
application/json
422
Unprocessable Entity
application/json
500
Internal Server Error
application/json
401001
application/json
401002
application/json
401003
application/json
401004
application/json
post
POST /api/v1/portfolio/{projectId} HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {}
}
Last updated