Skip to content

Page and retry policies

Describes stx-python 0.10.1, the current release.

A Sequence of models plus the cursor for the next page.

Attribute Type Description
has_more bool True when another page exists.

One entry of place_orders: the order, or why it was not placed.

Results come back in the order the orders were sent. Exactly one of order and errors is set.

Attribute Type Description
order Optional[Order]
errors Optional[List[str]]
ok bool True when the order was placed.

How many times to try a call, and how long to wait between tries.

The default is 3 attempts, 0.5 s initial backoff doubling to a 30 s cap, with jitter. RetryPolicy(max_attempts=1) (or stx.NO_RETRY) turns retries off.

Attribute Type Description
max_attempts int
initial_backoff float
max_backoff float
jitter bool
retryable_exceptions Tuple[Type[STXException], ...]
compute_backoff(attempt: int, exc: STXException) -> float

Seconds to wait after attempt attempt (1-based) failed.

Parameter Type Description
attempt int
exc STXException
should_retry(exc: STXException, attempt: int, idempotent: bool) -> bool

Whether to try again after exc ended attempt number attempt.

Parameter Type Description
exc STXException
attempt int
idempotent bool

Backoff between reconnect attempts. max_attempts=None never gives up.

Attribute Type Description
initial_backoff float
max_backoff float
max_attempts Optional[int]
jitter bool
delay(attempt: int) -> float
Parameter Type Description
attempt int

STX is operated by XV Exchange, LLC, a Designated Contract Market regulated by the U.S. Commodity Futures Trading Commission (CFTC). Contracts traded on STX are cleared by XV Clearing, LLC, a CFTC-registered Derivatives Clearing Organization. Trading involves substantial risk of loss and may not be appropriate for everyone. Members risk losing the cost to enter any transaction, including fees. Consider whether trading is appropriate for you in light of your experience and financial resources. Nothing on this site is investment advice or a recommendation to trade. Past performance is not indicative of future results.

© 2026 STX. All rights reserved.llms.txtllms-full.txtView as Markdown
Docs version v1.10.5