Skip to main content

rixtrade

Official Python client for the RixTrade options trading API.

from rixtrade import RixTrade

rix = RixTrade(token="rtk_test_...")

acct = rix.accounts.get_account(account_id)
print(acct["cash_balance"])

rix.orders.place_order(
    account_id,
    order_type="limit",
    limit_price=-1.20,
    legs=[{"side": "buy", "occ": "SPY261218C00700000", "quantity": 1}],
)

What it does that a raw HTTP call does not

Retries are bounded by the contract, not by a guess. Every refusal carries a retry class. One marked never is raised immediately rather than hammered; one carrying Retry-After is waited for exactly that long.

The idempotency key survives the retry. A retry after a timeout is the same order, not a second one — which is the single most expensive mistake an order client can make.

Cursors are handled. rix.paginate(...) walks a keyset cursor to exhaustion, so "did all my orders land?" has a complete answer rather than the first page of one.

Install

pip install rixtrade

Also served from our own index, if you would rather not depend on a third-party registry:

pip install --extra-index-url https://rixtrade.com/api/sdk/simple/ rixtrade

Sandbox first

Mint a key from your account, use a rtk_test_ credential, and point it at a sandbox account. Sandbox and live are separate reaches: a sandbox key cannot touch a funded account, by design.

Links

Generated from the published OpenAPI contract; every endpoint and response type is derived from the same document the server validates against.

Release files for rixtrade 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for rixtrade 1.0.3
File Interpreter ABI Platform
rixtrade-1.0.3-py3-none-any.whl Python 3 none any Details

Release files / rixtrade-1.0.3-py3-none-any.whl

Download URL rixtrade-1.0.3-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
299213ded4cad09472e9a17de6b5540aa1348c04d75bd6e52e19ea7fa0e7dc2f
BLAKE2b-256 checksum
How to use checksums
b538bf8dcdc0d77013015e27520a029e86c5b627b873d077365fce984e4aa2c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page