Backpack · Arazzo Workflow
Backpack Balance-Checked Market Buy
Version 1.0.0
Confirm available balance, read the ticker, then place a market buy and verify the fill.
View Spec
View on GitHub
CryptoExchangeWalletTradingPerpetualsSolanaWeb3DeFixNFTAnchorCoralCentralized ExchangeSelf-CustodyArazzoWorkflows
Provider
Workflows
balance-checked-market-buy
Check balances, quote a market, place a market buy, and confirm the fill.
Reads account balances and the market ticker, submits a market buy spending the supplied quote quantity, and reads recent fills to confirm execution.
1
getBalances
get_balances
Read account balances so the caller can confirm there is available quote asset before placing the buy.
2
getTicker
get_ticker
Read the ticker to anchor the buy against the current last traded price.
3
placeMarketBuy
execute_order
Submit a market buy that spends the supplied quote-asset amount on the requested symbol.
4
confirmFill
get_fills
Read recent account fills for the symbol to confirm the market buy was executed.