Execute order
Validates the order information and then calls institution’s API to execute an order.
It’s recommended to call this endpoint after calling the preview
endpoint to make sure that the
order execution request is correct.
Authorizations
Contact Mesh to get client Secret
Contact Mesh to get client Id
Path Parameters
unknown
, buy
, sell
Body
Auth token that allows connecting to the target institution
1
Type of the institution to connect
Supported integrations:
Robinhood
ETrade
Alpaca
WeBull
Stash
InteractiveBrokers
Public
Coinbase
Kraken
CoinbasePro
CryptoCom
Binance
Gemini
OkCoin
KuCoin
Etoro
CexIo
BinanceInternational
Bitstamp
GateIo
Okx
BitFlyer
Coinlist
Huobi
Bitfinex
KrakenDirect
Vanguard
BinanceInternationalDirect
Bybit
CoinbasePrime
RobinhoodConnect
robinhood
, eTrade
, alpaca
, tdAmeritrade
, weBull
, stash
, interactiveBrokers
, public
, coinbase
, kraken
, coinbasePro
, cryptoCom
, openSea
, binanceUs
, gemini
, cryptocurrencyAddress
, cryptocurrencyWallet
, okCoin
, bittrex
, kuCoin
, etoro
, cexIo
, binanceInternational
, bitstamp
, gateIo
, acorns
, okx
, bitFlyer
, coinlist
, huobi
, bitfinex
, deFiWallet
, krakenDirect
, vanguard
, binanceInternationalDirect
, bitfinexDirect
, bybit
, paxos
, coinbasePrime
, btcTurkDirect
, kuCoinDirect
, okxOAuth
, paribuDirect
, robinhoodConnect
, blockchainCom
, bitsoDirect
, binanceConnect
, binanceOAuth
, revolutConnect
, binancePay
Symbol to trade. For example, AAPL
or ETH
1
Symbol to use for payment, defaults to USD
.
1
Amount of purchase.
Some Stock and Crypto symbols can intersect, so the type of the asset needs to be specified explicitly.
Indicates whether the PaymentSymbol
is fiat or cryptocurrency
This value indicates if the order should be executed in payment/quote currency amount (e.g. purchase ETH for $10). This can be
performed only if the current institution supports such orders (SupportsPlacingSellOrdersInPaymentSymbolAmount
and
SupportsPlacingBuyOrdersInPaymentSymbolAmount
fields in get supported order features for institution
) and AmountInPaymentSymbol
value is passed.
market
, limit
, stopLoss
goodTillCanceled
, immediateOrCancel
, fillOrKill
, goodForDay
, postOnly
, unknown
Price of the unit, used for Limit
and StopLoss
orders.
Specifies the target amount in the payment/quote currency. For example, setting this to 10
when the AmountInPaymentSymbol
= true
and PaymentSymbol
= USD
will instruct the API to place an order to buy/sell the asset worth $10.
Specifies if the extended trading hours should be used.
MFA Code to create an order (requested by Kraken if MFA is enabled in user settings)
Response
ok
, serverFailure
, permissionDenied
, badRequest
, notFound
, conflict
, tooManyRequest
, locked
, unavailableForLegalReasons
A message generated by the API
User-friendly display message that can be presented to the end user
Strictly-typed error type that is explaining the reason of an unsuccessful status of the operation. All possible error types are available in the documentation.