Drift Protocol v2

โŒ˜K
๐Ÿ‘พWelcome to Drift Protocol
๐ŸงฎDrift DEX
๐Ÿ‘‹Getting Started
๐Ÿ“ˆPerpetual Futures
๐Ÿ“ŠSpot Margin Trading
๐ŸฆBorrow & Lend
๐Ÿ›๏ธStaking
๐ŸชMarket Makers
๐Ÿ”ฌTechnical Explanations
๐Ÿ“Accounting and Settlement
โž—Borrow Interest Rate
๐Ÿ“œDelisting Process
โ›ฒDrift AMM
๐ŸƒJust-In-Time (JIT) Auctions
๐Ÿ“šKeepers & Decentralised Orderbook
โ˜ ๏ธLiquidators
๐Ÿ’งLiquidity Providers (LPs)
๐Ÿ“‹Protocol Guard Rails
๐Ÿ“Risks
๐Ÿ–ฅ๏ธDeveloper Resources
๐Ÿ“”Program/Vault Addresses
โŒจ๏ธSDK Documentation
โŒจ๏ธTutorial: Bots
โš ๏ธTroubleshooting
๐Ÿ› ๏ธKeeper Bots
๐Ÿ› ๏ธTrading Bots
โŒจ๏ธHistorical Data (v1)
โŒจ๏ธAPI
๐Ÿ›ก๏ธSecurity
๐Ÿ›ก๏ธAudits
๐Ÿ›ก๏ธBug Bounty
โš–๏ธLegal and Regulations
๐Ÿ“Terms of Use
๐Ÿ“Disclaimer
๐Ÿ“Privacy Policy
๐Ÿ“Competition Terms and Conditions
๐Ÿ“šGlossary
Docs powered byย archbeeย 

bloXroute Solana API

7min

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:

  • Doc: https://docs.bloxroute.com/solana/trader-api/about/quick-start/go-sdkย 
  • Github: https://github.com/bloXroute-Labs/solana-trader-client-goย 

Python SDK:ย 

  • Doc: https://docs.bloxroute.com/solana/trader-api/about/quick-start/python-sdkย 
  • Github: https://github.com/bloXroute-Labs/solana-trader-client-pythonย 

TypeScript SDK:

  • Doc: https://docs.bloxroute.com/solana/trader-api/about/quick-start/typescript-sdkย 
  • Github: https://github.com/bloXroute-Labs/solana-trader-client-tsย 

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.

Updated 15 May 2023
Did this page help you?
Yes
No
PREVIOUS
Promotional Period for bloXroute Users
NEXT
Accounting and Settlement
Docs powered byย archbeeย 
TABLE OF CONTENTS
Getting Started
Installation
Endpoints for Drift Protocol
Why use bloXroute