Skip to Content
GuidesBuilding on Loaf

Building on Loaf

You can build on Loaf through its public contracts, explorer, market data and API, to bring physical markets into your own product. Wallets, portfolio tools, lenders, trading systems and AI agents can each use these integration points, within each token’s terms.

Integration points

Integration pointWhat it gives youAccess
Market dataLive prices, order books, trades, candles and headlines over REST and WebSocketPublic
Trading APISigned order entry, cancels, balances, positions and historyTrading key kept locally. A login token on reads and cancels. The order signature on placement
ExplorerAny trade, batch or account, with each batch’s settlement statePublic. Explorer
Intake journalA hash-chained record of every order the engine took in, in order of arrivalPublic. GET /api/l2/intake
ContractsFunds, batches, proofs and the exit path on Arbitrum OnePublic addresses
Property tokensA standard token contract on the blockchain for each marketAddress on each market page

To discuss an integration or partnership, contact Loaf at partnerships@loafmarkets.com, or DM @loafmarkets on X.

Market data and trading

Public REST endpoints and WebSocket channels give you live prices, order books, trades, candles and headlines with no credential. Load the current state once over REST, then follow changes over WebSocket. The API reference lists every endpoint and channel. Channels and trade paths use the market ticker (TERA, TERA-PERP).

The trading API lets you place, replace and cancel orders. Placement is a body signed by the account’s trading key. Other trading routes take a short-lived login token signed by that same key. A batch signature covers up to 256 orders. Cancel-after drops resting orders if the client stops refreshing it. POST_ONLY rests only when the order would not take. Building a trading bot walks through a first order. Loaf’s Python SDK  signs orders and login tokens for you.

Every account, the Loaf Liquidity Provider (LLP) included, uses the same public API, with no privileged data and no execution priority.

Warning. Automated orders trade real funds and can lose money quickly. Use cancel-after so your orders are cancelled if your system disconnects.

Property tokens and holdings

A property token is the unit you trade on a Loaf physical market: it gives economic exposure to one physical asset’s value and any income it pays, under terms set by its issuer. Each market’s token is a standard token on the blockchain, with its contract address shown on the market page and in the issuer’s documents.

Holdings sit in each account inside the Loaf contract on the blockchain. An application can confirm what an account holds from the account state Loaf publishes to the blockchain in full, or from the explorer. Holders can also withdraw tokens to their own wallet.

Each token is issued by its own issuer under its own terms. An application that uses a token respects any eligibility rules in those terms. Loaf Markets is a separate entity with no relation to any issuer, and each issuer’s documents are linked from its market.

Contracts and addresses lists the Loaf contracts and the state you can read from them.

Last updated on