Documentation
CSL is a perpetual exchange for CS:GO skins, built on Solana. It enables traders to long or short digital collectibles with leverage, using $USDC as collateral.
Unlike traditional skin marketplaces, CSL does not require users to own or move skins. Instead, it offers synthetic exposure to their prices via oracles and on-chain perp contracts.
Please feel free to navigate through our documentation which includes how-tos for traders as well as technical details for developers.
For Traders
Thorough how-to for traders
π How to Trade on CSL
Welcome to CSL Perpetuals β where you can long or short CS:GO skins with leverage. Follow this guide to get started in just a few minutes.
1. Create a Wallet
Download a Solana wallet (we recommend Phantom or Backpack).
Set it up and save your recovery phrase securely.
2. Fund Your Wallet
Get USDC on Solana (can be bought on most exchanges and sent directly).
Deposit it into your wallet.
This will be your trading balance on CSL.
3. Connect to CSL
Go to the CSL trading app.
Click Connect Wallet and select your wallet.
Once connected, youβll see your balance in the dashboard.
4. Choose a Market
Browse the list of skins (e.g. Dragon Lore, Karambit Fade, M4A4 Howl).
Click on a skin to open its trading page.
Review the current price and chart.
5. Open a Position
Decide if you want to Long (price goes up) or Short (price goes down).
Enter the amount of USDC you want to trade.
Choose your leverage (e.g. 2x, 5x, 10x).
Confirm your trade β your position is now live!
6. Manage Your Trade
Track your open position in the dashboard.
Youβll see your PnL (profit and loss) update in real time.
You can add margin, reduce leverage, or close your position anytime.
7. Close & Withdraw
When youβre ready, hit Close Position.
Your profit (or loss) will be settled instantly in USDC.
Withdraw USDC back to your wallet whenever you like.
β
Tips for Traders
Start with small positions until youβre comfortable.
Remember: higher leverage = higher risk.
Use shorts to hedge your CS:GO inventory if you own real skins.
Keep an eye on the market β skin prices can move quickly.
For Developers
The nitty gritty for developers interested in CSL, or CSL API
π Core Architecture
CSL Perpetuals is built on Solana using the Anchor framework. The system is composed of:
Smart Contracts β Handle perpetual markets, margin accounts, funding, and liquidations.
Price Oracles β Custom Switchboard feeds for CS:GO skins.
Collateral Vaults β USDC SPL token accounts securing all open positions.
Frontend Client β React/Next.js app communicating with Solana via Anchor client + Wallet Adapter.
π Program Structure
1. Market Program
Initializes new skin perp markets.
Stores market config (oracle feed, base/quote size, funding rate params).
Manages open interest tracking.
2. Margin Account Program
Creates user margin accounts tied to wallets.
Tracks deposits, withdrawals, open positions, and unrealized PnL.
Enforces initial & maintenance margin requirements.
3. Perp Engine (vAMM)
Virtual AMM design inspired by Drift & Mango.
Defines how long/short exposure interacts with market liquidity.
Applies funding rates each funding interval.
4. Liquidation Program
Monitors accounts for margin violations.
Allows liquidators to close unhealthy positions.
Applies liquidation penalty β sent to Insurance Fund.
π Oracles
Provider: Switchboard custom feeds.
Data Sources: Buff163, Skinport, DMarket APIs.
Aggregation: Weighted index + outlier filtering.
Update Interval: ~30 seconds.
Fallback: Circuit breakers pause markets if oracle feed is delayed or manipulated.
π΅ Collateral & Settlement
Collateral Asset: USDC (SPL).
PnL Settlement: All profits and losses settled in USDC.
Insurance Fund: Accumulates liquidation penalties; backstops protocol in extreme events.
βοΈ Key Parameters
Max Leverage: 10x
Initial Margin Ratio: 10%
Maintenance Margin Ratio: 6.25%
Funding Interval: Every 1 hour (adjustable per market)
Liquidation Penalty: 2% of position value
π₯ Developer Tools
Anchor Client
Developers can interact with CSL programs using the Anchor framework.
Copy
// Example: Fetching a market
let market = program.account::<Market>(market_pubkey)?;
println!("Current oracle price: {:?}", market.oracle_price);
APIs (Planned)
REST & GraphQL APIs will expose:
Market prices & funding rates
Open interest per skin
User position data (public)
Historical PnL
π Security
Audits: Scheduled with external firms.
Circuit Breakers: Pause trading if oracle anomaly detected.
Rate Limits: Per-user and per-market limits to mitigate abuse.
Liquidation Incentives: Ensure system solvency during volatility.
π Integration Opportunities
Market Makers: Provide liquidity by running liquidation & funding bots.
Analytics Platforms: Pull data from on-chain accounts + APIs for dashboards.
Custody Partners (Future): Wrap real skins into SPL tokens for collateral.
Bot Traders: Programmatically trade perp markets using Anchor client or API.
Integrations
π Oracles
Switchboard β custom oracle feeds delivering real-time CS:GO skin pricing data.
Marketplace Data Sources:
Buff163
Skinport
DMarket
Other third-party APIs as backup feeds
Aggregation: Prices are weighted and published to Solana in near real-time to ensure fair market execution.
π΅ Collateral & Settlement
USDC (Solana SPL) β primary collateral and settlement asset.
Phantom Wallet β native wallet support for deposits/withdrawals.
Solflare / Backpack / Ledger β additional wallet integrations.
βοΈ Perpetual Engine
Anchor Framework β Rust-based smart contract development framework.
Virtual AMM (vAMM) β underlying liquidity model for perpetual trading.
Liquidation Bots β incentivized off-chain actors for liquidation execution.
π‘ Risk & Safety
Insurance Fund β protocol-owned reserve to cover bad debt during extreme volatility.
Circuit Breakers β trading halts triggered by oracle anomalies or manipulation.
Audits: [Planned] external code audits for protocol security.
π Frontend & UX
React / Next.js β frontend framework powering CSL dashboard.
Solana Wallet Adapter β seamless multi-wallet connection.
TradingView Charts β interactive charting integration for skin price markets.
π Analytics & Monitoring
Helius β Solana RPC & indexing for real-time on-chain data.
Dune Analytics (planned) β public dashboard for volumes, OI, and funding rates.
Datadog (internal) β performance and infrastructure monitoring.
Last updated