Free lesson · Trading different assets
Spot crypto: tokens, venues, wallets and execution
Open interactive lessonPractice calculationsExplore labs
Start with the idea
Buying a spot crypto asset creates exposure to units of that asset. How you hold and transfer it depends on whether it remains with an intermediary or is controlled through a wallet.
Symbols, units & horizon
- q: positive spot units bought and sold
- P_0,P_1: quote-asset price per spot unit
- C_trade: total trading costs in quote units
- C_transfer: transfer/network costs converted to the same quote units
- Π: profit in quote units
- example assumes no token distributions and fixed costs
When and why to use this
Use venue- and custody-aware spot ledgers for crypto trend, relative-value and cross-venue research.
A spot balance on a trading venue is a record within that venue’s custody system. A self-custodied wallet uses private keys to authorize transactions on a network. The same ticker can exist on different networks or as a wrapped claim; check asset identity, chain, transfer format and withdrawal terms.
Trade execution and on-chain settlement are different events. A centralized order book matches orders internally; a decentralized swap interacts with a liquidity mechanism and network transaction. Spread, trading fees, network fees, price impact and transaction ordering can all matter. An illustrative fixed-price spot ledger does not model an automated market maker.
Continuous market trading does not guarantee continuous access to deposits, withdrawals or reliable liquidity. Stablecoin quotes introduce another asset’s redemption and custody risks. A funding-rate strategy is not a spot strategy; it adds derivative exposure and collateral mechanics.
For research, keep venue-specific prices, fees and timestamps. Cross-venue price gaps may require prefunded inventory because transfers take time and may be restricted. Compare executable size after all transfer and financing costs before calling a gap arbitrage.
Spot crypto: tokens, venues, wallets and execution
- Compute the sale proceeds qP₁ and original purchase cost qP₀.
- Subtract entry cash from exit proceeds and deduct trading costs.
- Convert transfer costs into the same quote asset before deducting them. This ledger excludes any unmodeled lending, staking or derivative cash flows.
Buy .2 units at 50,000 and sell at 51,000 quote units per asset. Gross change is 200. Trading costs 12 and transfer costs 5 leave 183 quote units.
Apply it in a strategy
- Identify the exact token/network and where custody resides.
- Record executable venue quotes and complete costs in one accounting currency.
- Test inventory and transfer assumptions before researching cross-venue execution.
Research deliverable
Draw the path from deposited funds through a spot fill to custody or withdrawal, naming each cost and timing assumption.
Mechanics & research · reviewed 12 September 2026
Official educational material checked 12 September 2026. These examples use hypothetical prices and costs. Check the actual product specification, broker terms, venue calendar and jurisdiction before building an instrument adapter. Private keys and custody distinctions checked. No venue or token is recommended.
Further reading: Investor.gov · Crypto asset custody basics ↗
Python implementation
Self-contained teaching example. Python 3.10+; dependencies and input conventions are shown in the code and notation. Run in your own Python environment.
def spot_crypto_profit(units,entry,exit,trading_cost,transfer_cost):
if min(units,entry,exit,trading_cost,transfer_cost)<0: raise ValueError("Nonnegative spot inputs required")
return units*(exit-entry)-trading_cost-transfer_cost
print(spot_crypto_profit(.2,50000,51000,12,5))Continue learning
Trading Different Assets: Instruments, Mechanics & Risk — all lessons- Start with the instrument: exposure, ownership and obligations
- Stocks and ETFs: shares, dividends, shorting and fund structure
- Bonds and bills: lending, accrued interest and settlement cash
- Futures: multipliers, ticks, margin and expiry
- Commodities: spot goods, storage and the futures curve
- Foreign exchange: two currencies, one quote and financing
- Options: rights, premiums, exercise and nonlinear exposure
- Spot crypto: tokens, venues, wallets and execution
- Crypto perpetuals: funding, mark prices and liquidation
- Event contracts: resolution rules and probability-priced exposure
Quantitative finance and development glossary · Python resources and libraries · Research sources and limitations