The HertzFlow SDK is a comprehensive TypeScript SDK designed for interacting with the HertzFlow protocol on BNB Smart Chain.
The HertzFlow SDK is a comprehensive TypeScript SDK designed for interacting with the HertzFlow protocol on BNB Smart Chain. It provides a complete trading infrastructure with support for positions, orders, markets, tokens, and various trading operations.
Features
Core Trading Features
Position Management: Open, close, and manage leveraged long/short positions with full PnL tracking
Order Management: Create, update, and cancel market/limit orders with support for stop-loss and take-profit
Token Swaps: Execute token swaps with automatic route finding and slippage protection
Pool Operations: Deposit and withdraw from HM pools and HLV vaults
Data & Analytics
Market Data: Fetch comprehensive market information including configs, values, and daily volumes
Position Analytics: Calculate PnL, leverage, liquidation prices, and fees in real-time
Price Feeds: Access real-time token prices from integrated oracle services
Trade History: Query historical trades with pagination and filtering
Real-Time Events
WebSocket Integration: Subscribe to real-time position, order, and deposit/withdrawal events
Event Filtering: Filter events by type and account