{"repo":"velocity-exchange/gateway","free":true,"listed":false,"github":"https://github.com/velocity-exchange/gateway","clone":"git clone https://github.com/velocity-exchange/gateway.git","description":"Self hosted API gateway to easily interact with Drift V2 Protocol","language":"Rust","stars":41,"topics":[],"license":"Apache-2.0","category":"self-hosted-apps","readme_excerpt":"Velocity Gateway Self hosted API gateway to easily interact with Velocity Protocol Table of Contents 1. Build & Run - From Source - From Docker 2. Usage - Environment Variables - Delegated Signing Mode - Sub-account Switching - Emulation Mode - Transaction Confirmation - CU price/limits 3. API Examples - HTTP API - GET Market Info - GET Orderbook - GET Orders - GET Positions - GET Perp Position Info - GET Transaction Events - GET SOL Balance - GET Authority - GET Margin Info - GET Leverage - POST Leverage - GET Collateral - POST Place Orders - POST Swift (signed message) Orders - PATCH Modify Orders - DELETE Cancel Orders - POST Swap - POST Titan Swap - PUT Atomic Cancel/Modify/Place Orders - Websocket API - Subscribing - Event Payloads 4. Errors 5. FAQ Build & Run ⚠️ Before starting, ensure a Velocity user account is initialized e.g. via the velocity app at https://beta.velocity.exchange (devnet) or https://app.velocity.exchange From Docker Use prebuilt image, ghcr.io: Build the Docker image: Run the image: From Source Build: Supports latest rust stable (requires 1.89 or newer) Run: gRPC mode Run gateway subscriptions with geyser gRPC updates Usage ⚠️ Before starting, ensure a Velocity user account is initialized e.g. via the velocity app at https://beta.velocity.exchange (devnet) or https://app.velocity.exchange Environment Variables These runtime environment variables are required: Variable Description Example Value --------------------- -----------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/velocity-exchange","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/velocity-exchange/gateway/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}