📺Watchlist
Needs Wallet Authentication
This route gets the projects present in watchlist of the wallet.The route first queries and finds all the projects in the watchlist.The route then returns the projects found.
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/watchlist/projects HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {
"watchlist": [
{
"id": "11839fbd-0b72-4704-86cb-04db0ca40a13",
"symbol": "ETH",
"name": "ethereum",
"price": 786,
"price_change_daily": 786,
"price_change_daily_positive": true
}
]
}
}
Needs Wallet Authentication
This route adds the given project to watchlist.The route first queries and finds the project in our database.The route then adds the given project to the watchlist 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/watchlist/{projectId} HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
"ok": true,
"result": {}
}
Last updated