# Parquet ## Docs - [Partial close (SDK only)](https://docs.parquet.exchange/developer/partial-close.md): How to close part of a Parquet position via the SDK closeSize parameter — not exposed in the trading UI, available to power users via SDK or direct instruction calls. - [TypeScript SDK](https://docs.parquet.exchange/developer/sdk.md): Parquet TypeScript SDK — five client classes wrapping pool, perp, oracle, fee-distributor, and staking programs. Instruction-builders only. - [The payout queue for LPs](https://docs.parquet.exchange/earn/lp-payout-queue.md): What the v4 FIFO payout queue means for Parquet LPs — free liquidity gating, the side bucket, harvest rewards, bad-debt routing. - [Referrals — full lifecycle](https://docs.parquet.exchange/earn/referrals-lifecycle.md): How Parquet tracks the referrer relationship on-chain, how tier-based rewards accrue, and how affiliates pull USDC via claim_affiliate_reward. - [Staking emissions](https://docs.parquet.exchange/earn/staking-emissions.md): How Parquet emission-schedule staking pools release rewards over time, and how claim_and_restake compounds LP-pool rewards into the protocol token pool atomically. - [Your first trade](https://docs.parquet.exchange/getting-started/first-trade.md): Open and close your first long perpetual position on Parquet — a seven-step walkthrough from connect to settlement. - [Wallet setup](https://docs.parquet.exchange/getting-started/wallet-setup.md): Install a Solana wallet, fund it with USDC, and connect to Parquet — Phantom and Solflare walkthrough. - [Parquet](https://docs.parquet.exchange/introduction.md): A decentralized perpetuals exchange on Solana for US stock, ETF, and commodity-ETF markets. - [Providing liquidity](https://docs.parquet.exchange/liquidity/overview.md): How the USDC liquidity pool works on Parquet — depositing, withdrawing, earning fees, and understanding risks. - [Markets](https://docs.parquet.exchange/markets.md): All 15 listed markets — US equities, ETFs, and commodity ETFs. - [Indexer API](https://docs.parquet.exchange/network/api.md): Parquet indexer REST and WebSocket reference — events, OHLCV, stats, fees, staking, leaderboard, payout queue, orderbook, market hours, /health, /ws. - [Contracts](https://docs.parquet.exchange/network/contracts.md): Parquet program IDs — six programs deployed on devnet today, same IDs reserved for mainnet. - [FAQ](https://docs.parquet.exchange/reference/faq.md): Common questions about Parquet — what it is, how to trade, fees, trading hours, mainnet status, audits, where to file bugs. - [Glossary](https://docs.parquet.exchange/reference/glossary.md): Definitions for Parquet-specific terms — payout queue, side bucket, phantom credit, MMR, effective equity, free liquidity, and the rest. - [Risks](https://docs.parquet.exchange/reference/risks.md): The risk disclaimer Parquet shows on first mainnet wallet connect — and the structural risks specific to stock perps on Solana. - [Referrals](https://docs.parquet.exchange/referrals.md): Earn fee discounts and affiliate rewards through the Parquet referral program. - [Staking & Rewards](https://docs.parquet.exchange/staking/overview.md): Stake tokens to earn protocol fee distributions and emission rewards on Parquet — pool types, tier multipliers, and reward mechanics. - [Liquidations](https://docs.parquet.exchange/trade/liquidations.md): How and why positions get liquidated on Parquet — MMR formula, 50 bps liquidator reward, dual-CPI flow, v4 queue clawback, RTH halt. - [Managing margin](https://docs.parquet.exchange/trade/margin-management.md): Add or remove margin from an open Parquet position via update_position_margin — health check, RTH gating, and v4 queue-drawn caveats. - [The payout queue](https://docs.parquet.exchange/trade/payout-queue.md): What happens when a winning close finds the Parquet pool short of free liquidity — FIFO queue, harvest, phantom credit, the trader's options. - [Fees & Costs](https://docs.parquet.exchange/trading/fees.md): Position fees, tiered fees, funding rates (capped at 10 bps/hour), borrowing fees, and how fees are distributed. - [Order types](https://docs.parquet.exchange/trading/order-types.md): Market orders, limit orders, stop-loss, and take-profit — how each order type works and executes on Parquet. - [Trading overview](https://docs.parquet.exchange/trading/overview.md): How to trade perpetuals on Parquet — wallets, positions, leverage, trading keys, RTH calendar, and liquidations. ## OpenAPI Specs - [openapi](https://docs.parquet.exchange/api-reference/openapi.json)