Documentation

Developer Docs

Integrate with Liqour's REST API and WebSocket streams.

Overview

Liqour is a non-custodial social perpetuals exchange on Solana. Users can trade SOL, BTC, ETH with up to 50x leverage and automatically copy top traders.

Quick Start

Connect a Phantom or Backpack wallet (devnet). Fund with devnet SOL/USDC. Navigate to /trade/{market} to begin trading.

terminal
npm install @solana/web3.js
import { Connection } from "@solana/web3.js"

const connection = new Connection("https://api.devnet.solana.com")

REST API

All market data is available via REST endpoints. Authenticate with JWT for order placement.

terminal
GET  /markets                    # List all markets
GET  /markets/{m}               # Market detail + orderbook
GET  /markets/{m}/candles?tf=1m # OHLCV data
POST /orders                    # Place order
GET  /positions                 # Open positions

WebSocket

Real-time data streams for prices, orderbook, fills, and positions.

terminal
ws://localhost:3000/ws

Subscribe: { "type": "SUBSCRIBE", "channel": "price:SOL" }
Events: PRICE_UPDATE, ORDERBOOK_UPDATE, FILL, POSITION_UPDATE

Copy Trading

Follow traders via the leaderboard. Copy amounts are proportionally mirrored. Set max-loss limits and alerts per trader.

terminal
POST /follow
Body: { leader_id, copy_amount }

DELETE /follow/{id}  # Unfollow

Questions? Reach out to the team