Build with the AI Skill
Trade ItTrade ItDocs
Data Models

Account

A brokerage account the user connected. Get accounts returns accounts, and account webhook events send one as data.

Fields

idnumber | string

Trade It account ID. Pass it as account_id in holdings and trade requests.

created_atstring

When the record was created.

updated_atstringoptional

When the record last changed.

connection_idnumber | string

The brokerage login the account belongs to. Accounts on one connection disconnect and reconnect together.

external_idstring

The brokerage's account number. Not included in webhook events.

namestringoptional

Display name: the brokerage plus the account number's last four digits.

balanceBalance

Total account value.

Cash balance.

buying_powerBalance

Funds available to trade.

synced_atstring (format: date-time)optional

When balances were last synced from the brokerage.

holdings_synced_atstring (format: date-time)optional

When holdings were last synced from the brokerage.

trades_synced_atstring (format: date-time)optional

When trade history was last synced from the brokerage.

Brokerage details

Get accounts returns each account as { account, brokerage_metadata, connection }. These are the fields beside account.

brokerage_metadataobject

The brokerage holding the account and what it supports.

idnumber

Trade It brokerage ID.

namestring

Brokerage name.

fractional_supportboolean

Whether the brokerage supports fractional shares.

minimum_ordernumberoptional

Smallest order the brokerage accepts, in USD.

options_supportboolean

Whether the brokerage supports options.

take_profit_supportbooleanoptional

Whether the brokerage can attach a take-profit exit to an entry order.

stop_loss_supportbooleanoptional

Whether the brokerage can attach a stop-loss exit to an entry order.

oco_supportbooleanoptional

Whether take-profit & stop-loss are supported on an OCO Sell order.

connectionobject

The account's brokerage connection. id matches the account's connection_id.

idnumber | string

The database ID. Use for lookups.

statusenumoptional

0 pending, 1 connected, 10 disconnected.

0110

Balance

Money fields are Balance objects.

amountnumber

Amount in currency.

currencystring

ISO 4217 currency code, such as USD.

On this page