https://api.snaptrade.com/api/v1/accounts/{accountId}/trading/simple/preview
Previews an order using the specified account.
accountId
string (format: uuid)
required
Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
userId
string
SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
userSecret
SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the rotate user secret endpoint.
instrument
object
symbol
The instrument's trading ticker symbol
type
The instrument's type
side
The action describes the intent or side of a trade. This is either BUY or SELL.
BUY
SELL
The type of order to place.
time_in_force
The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires.
GTC
FOK
IOC
GTD
amount
string (format: decimal)
The amount of the base currency to buy or sell.
limit_price
The limit price. Required if the order type is LIMIT, STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
stop_price
The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
post_only
boolean
Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
expiration_date
string (format: date-time)
The expiration date of the order. Required if the time_in_force is GTD.
1Loading...
Preview of an order.
estimated_fee
The estimated order fee.
currency
Symbol to identify a cryptocurrency or fiat currency on a crypto exchange. Fiat currencies symbols are ISO-4217 codes.
1{2 "estimated_fee": {3 "currency": "BTC",4 "amount": "123.45"5 }6}