Prices

The price resource allows you to fetch price history of investment products.

Fetching Prices

To fetch the price history of an asset, you need to make an API call to the /prices endpoint, specifying a date range and asset code of the product you wish to fetch price history for. Below is a sample response object of an asset price history

{
   "pagination":{
      "next":null,
      "previous":null,
      "count":1
   },
   "data":[
      {
         "asset_id":"c95c50f4-9982-4fcc-bfc3-880057c64f21",
         "asset_name":"United Capital Equity Fund",
         "buy_price":115.0,
         "sell_price":112.0,
         "current_price":0.0,
         "current_yield":0.0,
         "ytd":0.0,
         "date":"2021-05-11"
      }
   ],
   "errors":null,
   "message":"Request successful",
   "status":"success"
}
Sample Prices Object

kindly visit the API reference to learn more.