Overview

Details about how to obtain access tokens using OAuth 2.0

Fetch positions, balances and other account related details.

Place equity and complex option trades including advanced orders.

Fetch quotes, chains and historical data via REST and streaming APIs.

Stream market data events in real-time.

Create and update custom watchlists.

Examples, response types, property details and explanations.

Gainloss

Field Description
close_date Date the position was closed
cost Total cost of the position
gain_loss Gain or loss on the position
gain_loss_percent Gain or loss represented as percent
open_date Date the position was opened
proceeds Total amount received for the position
quantity Quantity of shares/contracts
symbol Symbol of the security held
term Term in months position was held