Get Instrument Discounts
get_discountsRetrieve margin discount rates for instruments from BCS marginal-indicators service. Use optional tickers filter to narrow results. Verify values against web cabinet as raw coefficients often show as 1.
Instructions
Margin discount rates per instrument from the marginal-indicators service. The API exposes discountLong only (no short rates), and values are raw BCS coefficients — observed as 1 for every instrument, so verify against the web cabinet before relying on them. Optional tickers filter is applied client-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tickers | No | Filter to these tickers (uppercase) | |
| outputPath | No | Write the full result to this file (path relative to the output root: BCS_OUTPUT_DIR or server cwd) instead of returning it inline. The response becomes a short summary {savedTo, records, bytes, sample}. Use for bulk data to keep the context clean. For get_candles this also enables full-history fetching (chunking beyond the 1000-bar API limit). | |
| outputFormat | No | File format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response. |