Skip to content

FYERS REST Payloads

This page documents the common REST payloads used by fyers-store. Sample payloads are based on FYERS docs and SDK behavior.

History

{
  "symbol": "NSE:SBIN-EQ",
  "resolution": "D",
  "date_format": "0",
  "range_from": 1704067200,
  "range_to": 1706659200,
  "cont_flag": "1"
}

Quotes

{
  "symbols": "NSE:SBIN-EQ,NSE:RELIANCE-EQ"
}

Place Order (Single Shot)

{
  "symbol": "NSE:SBIN-EQ",
  "qty": 10,
  "type": 2,
  "side": 1,
  "productType": "CNC",
  "validity": "DAY",
  "offlineOrder": false
}

Modify Order

{
  "id": "ORDER_ID",
  "type": 1,
  "limitPrice": 500.0,
  "qty": 10
}

Cancel Order

{
  "id": "ORDER_ID"
}

Known Quirk: No Idempotency

FYERS does not accept client-provided idempotency keys. If place_order() times out, the order state is unknown. You must reconcile via Order WS and orderbook() before retrying.

Scenario Example

Scenario: A place_order call returns a timeout exception. - Do not retry immediately. - Check orderbook() and Order WS updates first.