Skip to content
Permalink
Browse files

Add doc for queryByDate in README.

  • Loading branch information...
albertosantini committed Jun 28, 2018
1 parent 78f95b5 commit 0b9990ce94c96217b146b5f1e14f8f086348a395
Showing with 28 additions and 0 deletions.
  1. +28 −0 README.md
@@ -284,6 +284,34 @@ It retrieves a portfolio.
- *risk* risk of the portofolio.
- *weights* weights of the portfolio assets.

crm.queryByDate(params, callback)
---------------------

It retrieves the portfolios by date sorted by a metric.

metric, //
beginRefDate, // yyyy/mm/dd
endRefDate, // yyyy/mm/dd
limit = 3,
sort = "asc" // "asc, "desc"

**Params**

- *metric* "perf", "risk", "ret".
- *beginRefDate* start date formatted yyyy/mm/dd.
- *endRefDate* end date formatted yyyy/mm/dd.
- *limit* maximum number of records.
- *sort* "asc, "desc".

**Response callback**

- *docs* array of results.

- *metric* kind of metric.
- *ref* reference date.
- *assets* array of assets.
- *weights* array of weights.

crm.getPortfolioCount(callback)
---------------------

0 comments on commit 0b9990c

Please sign in to comment.
You can’t perform that action at this time.