bloXroute Solana API
Market makers and institutional traders can also trade on Drift via bloXroute's Solana API.
The below information has been provided by bloXroute. Please contact the bloXroute team if you have any questions regarding implementation.
Getting Started
The bloXroute Solana Trader API offers multiple options for communicating with endpoints, including HTTP calls, WebSocket, and gRPC connections. Additionally, the API provides SDKs in three different languages, including Go, Python, and TypeScript. BloXroute highly recommends users utilize their SDKs, as they provide the easiest setup and use for the API.ย
For more information, please visit bloXroute Solana Trader API Documentation.
Installation
To install bloXroute's SDKs, you can use the following pages for your reference.ย
Go SDK:
Python SDK:ย
TypeScript SDK:
A video tutorial of how to install SDKs and start data streaming can be found here: https://www.youtube.com/watch?v=NWV1W6wnQhY&t=13sย
Endpoints for Drift Protocol
bloXroute's Trader API supports the following endpoints for trading perpetual futures on Drift:
- GET Perp Orderbook
- GET Contracts
- GET Assets
- GET Perp Positions
- GET Perp Open Orders
- POST Create Position Order
- POST Create Cancel Position Order
- POST Create Manage Collateral
- POST Create Settle Profit and Loss.
- Stream Perp Orderbooks'
Why use bloXroute
The bloXroute Solana Trader API offers several advantages that make it an excellent choice for traders. It is very user-friendly and doesn't require running your own node. The API is designed in a CEX-like RESTful system, with all data available in orderbook format in a simple and intuitive manner. Installing the SDK takes less than half an hour and it boasts excellent performance and low latency, ensuring that users can execute transactions quickly and efficiently. The Trader API is a comprehensive solution for traders operating in the Solana ecosystem, and was developed in partnership with several leading Solana projects, including Raydium, Jupiter, Openbook (Serum community fork), and Drift Protocol. It provides traders with data streams for token prices, latest swaps, orders, and access to Drift's decentralized perpetual futures market in a CEX-like orderbook API environment.
Have questions about the Solana Trader API? Contact the bloXroute team at hello@bloxroute.com or on their Discord.