GET api/TSCalc/GetReturns/{id}?dt={dt}&span={span}&freq={freq}&t={t}

Retrieve unit returns.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id. i.e. I3, B12345.

string

Required

dt

The ending date, in format of yyyymmdd.

integer

Required

span

Time span in months.

integer

Required

freq

Frequency: D,W,M,Q,S,A

string

Required

t

string

Required

Body Parameters

None.

Response Information

Resource Description

Tuple of two in pair of date and unit value.

Collection of TSReturn
NameDescriptionTypeAdditional information
date

integer

None.

val

decimal number

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "date": 1,
    "val": 2.1
  },
  {
    "date": 1,
    "val": 2.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfTSReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BondEdge.Equity">
  <TSReturn>
    <date>1</date>
    <val>2.1</val>
  </TSReturn>
  <TSReturn>
    <date>1</date>
    <val>2.1</val>
  </TSReturn>
</ArrayOfTSReturn>