Skip to main content
POST
Check trades

Authorizations

Authorization
string
header
required

An API key: abacus_sk_test_... (sandbox, from POST /v1/keys) or abacus_sk_live_... (from https://app.abacuslabs.ai)

Headers

Idempotency-Key
string | null

optional: any unique string (a UUID). A retry with the same key and body within 24 hours returns the stored answer with Idempotent-Replayed: true and is not charged again; the same key with a different body is 409 idempotency_key_reused

Body

application/json

Drafted trades to check against the account's rules and repair.

trades
TradeIn · object[]
required
accounts
Accounts · object[] | null
account_id
string | null
account
Account · object | null
snapshot_id
string | null
policy
Policy · object | null

rules to check against beyond the account's own (keep, exclude, buy_only, no_sells, max_names, tax.max_tax, trading.max_turnover)

max_credits
integer | null

refuse the call when it would cost more credits than this

Required range: x >= 0
constraints
Constraints · object | null
tax_rates
Tax Rates · object | null
wash_sale_policy
enum<string>
default:same_index
Available options:
same_index,
exact
benchmark
detail
enum<string>
default:compact
Available options:
compact,
full

Response

Successful Response