Protocol Overview
Pulperp represents a paradigm shift in decentralized perpetual trading. By integrating cutting-edge Large Language Models for risk assessment and leveraging GPU-accelerated computation for order execution, we have created a trading infrastructure that rivals and often exceeds the performance of centralized exchanges.
Why Pulperp?
Architecture at a Glance
The Pulperp protocol consists of three primary layers: the Intelligence Layer (LLM risk engine), the Execution Layer (GPU subnets), and the Settlement Layer (Solana smart contracts). These layers work in concert to provide a seamless trading experience.
Getting Started
Get up and running with Pulperp in minutes. This guide will walk you through the essential steps to start trading perpetuals or integrating with our protocol.
Install the SDK
The Pulperp SDK provides a type-safe interface for interacting with the protocol. Choose your preferred package manager:
npm install @pulperp/sdkyarn add @pulperp/sdkpnpm add @pulperp/sdkInitialize the Client
Create a Pulperp client instance with your Solana wallet. The client handles all communication with the protocol.
Open Your First Position
Execute a perpetual trade with just a few lines of code. The SDK handles all the complexity of interacting with the protocol.
LLM Risk Engine
At the heart of Pulperp lies our proprietary LLM Risk Engine - a sophisticated AI system that continuously analyzes market conditions, news sentiment, on-chain activity, and historical patterns to provide real-time risk assessments for every trade.
How It Works
Risk Score Interpretation
GPU Execution Layer
Pulperp leverages dedicated GPU subnets for order matching and execution. This massively parallel architecture enables us to process thousands of orders simultaneously, achieving latencies that rival centralized exchanges while maintaining full decentralization.
Our GPU clusters process orders in parallel batches, enabling throughput that scales linearly with demand. Each subnet can handle over 10,000 concurrent order operations.
From order submission to on-chain confirmation, the entire execution pipeline completes in under 50 milliseconds for standard market conditions.
Performance Metrics
| Metric | Value |
|---|---|
| Order Matching | 12ms |
| Risk Calculation | 8ms |
| On-chain Settlement | 25ms |
| Total Latency | 45-50ms |
| Throughput | 45,000 TPS |
| Uptime | 99.97% |
API Reference
Pulperp provides a comprehensive REST API for programmatic access to all protocol functions. All endpoints support both JSON and MessagePack encoding for optimal performance.
https://api.pulperp.io/v1Endpoints
/marketsList all available perpetual markets with current prices and funding rates
{
"markets": [
{
"symbol": "SOL-PERP",
"price": "142.85",
"fundingRate": "0.0001",
"volume24h": "12500000",
"openInterest": "8500000"
}
]
}/positions/:walletGet all open positions for a wallet address
{
"positions": [
{
"id": "pos_abc123",
"market": "SOL-PERP",
"side": "long",
"size": "10.5",
"entryPrice": "140.25",
"unrealizedPnl": "27.30"
}
]
}/ordersSubmit a new order (market or limit)
{
"order": {
"id": "ord_xyz789",
"status": "filled",
"filledSize": "10",
"avgPrice": "142.50",
"executionTime": "47ms"
}
}/risk/:marketGet current risk metrics and LLM analysis for a market
{
"riskScore": 35,
"volatility": "medium",
"maxLeverage": 20,
"analysis": "Market conditions stable..."
}/orders/:idCancel an open order
{
"cancelled": true,
"orderId": "ord_xyz789"
}SDK Integration
The official Pulperp SDK provides a fully typed, developer-friendly interface for building trading applications, bots, and integrations on top of the protocol.
Available Methods
openPosition()TradingOpen a new perpetual position with custom parameters
closePosition()TradingClose an existing position partially or fully
addMargin()MarginAdd collateral to an open position
removeMargin()MarginWithdraw excess margin from a position
getPosition()QueryFetch details of a specific position
getPositions()QueryList all positions for a wallet
getMarkets()QueryGet all available markets and prices
getFundingRate()QueryGet current funding rate for a market
getRiskAssessment()RiskGet LLM-powered risk analysis
streamPrices()WebSocketReal-time price feed subscription
streamPositions()WebSocketReal-time position updates
streamOrders()WebSocketOrder status change notifications
Smart Contracts
Pulperp is built on a suite of Solana programs that handle collateral management, position tracking, liquidations, and protocol governance. All contracts are open source and audited.
Program Addresses
Main trading engine and position management
BaNa1111111111111111111111111111111111111Collateral custody and margin management
BaNa2222222222222222222222222222222222222Pyth price feed integration layer
BaNa3333333333333333333333333333333333333Automated position liquidation system
BaNa4444444444444444444444444444444444444Protocol parameter governance
BaNa5555555555555555555555555555555555555All Pulperp contracts have been audited by OtterSec and Neodyme. Audit reports are available in our GitHub repository. Program addresses shown are placeholder values - official addresses will be published at mainnet launch.
Security
Security is foundational to Pulperp. We employ multiple layers of protection to ensure the safety of user funds and the integrity of the trading system.
Audited Contracts
All smart contracts undergo rigorous third-party security audits before deployment. We work with leading blockchain security firms including OtterSec and Neodyme.
Insurance Fund
A protocol-owned insurance fund covers socialized losses from liquidations. The fund is continuously capitalized through a portion of trading fees.
Non-Custodial
Pulperp is fully non-custodial. Users maintain control of their funds at all times through their Solana wallets. We never hold user private keys.
Real-time Monitoring
Our security team employs 24/7 monitoring systems that detect anomalies in trading patterns, contract interactions, and system performance.
Frequently Asked Questions
What makes Pulperp different from other perpetual DEXs?
What is the maximum leverage available?
How does the LLM risk engine protect traders?
What tokens are supported as collateral?
How are funding rates calculated?
Is Pulperp audited?
What happens during a liquidation?
Can I build trading bots on Pulperp?
Ready to start trading?
Launch the Pulperp dApp and experience the future of perpetual trading on Solana.