📺Watchlist

Gets the projects in the watchlist of the wallet.

get

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
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
      }
    ]
  }
}

Adds project to the watchlist of the wallet.

post

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
post
POST /api/v1/watchlist/{projectId} HTTP/1.1
Host: www.dyorbackend.tk
Accept: */*
{
  "ok": true,
  "result": {}
}

Last updated