Roll Contracts
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Response
Non-empty if the request failed
Bearer authentication of the form Bearer <token>, where token is your auth token.
Non-empty if the request failed
Available to: All authenticated users
Environments: Demo, Live
Rate Limit: 1,000 requests per hour, 1-second back-off, counts all requests
Batch version of rollContract. Supply a rollContracts array, each entry naming a contract (name) with a forward direction (true for the next maturity, false for the previous) and an optional ifExpired flag. Each entry is resolved independently to the adjacent contract in its product’s maturity sequence. This resolves contract definitions only — it does not move positions or place orders.
On success, the response contracts field is a map keyed by the requested contract name, with each value the resolved Contract (its id, name, and contractMaturityId). If the request fails, errorText describes the reason.
Common Failure Scenarios
name does not match any contract.Error Messages