Field Manual Brokerage / Linux / Laravel
← HTTP / API

API contract: change these points first

The practice API is provisional. Match the supplied contract before using live mode.

What it is

The practice API is provisional. Match the supplied contract before using live mode.

When to use it

Use while assembling or adapting the brokerage practice app.

Syntax

GET /v1/market-data -> {"data": [{"symbol": "AAPL", "last_price": 189.42, "bid": 189.4, "ask": 189.5, "change_percent": 0.5, "volume": 100, "updated_at": "2026-01-01T00:00:00Z", "bids": [], "asks": []}]}
POST /v1/orders -> {"exchange_order_id": "EX-123", "status": "accepted"}

Example

EXCHANGE_DEMO=false
EXCHANGE_BASE_URL=https://provided-host
EXCHANGE_API_KEY=provided-key
# Then: php artisan config:clear

Common mistakes

Edit ExchangeClient paths, authentication, payload and response checks; StoreOrderRequest symbol/quantity/price rules; market.blade.php field mapping. Confirm whether book depth has a separate endpoint. Demo prices are fixed; acceptance is not execution. A UUID is not proof of upstream idempotency.

Related topics

Browse HTTP / API