@drift-labs/common
Version:
Common functions for Drift
28 lines (27 loc) • 870 B
TypeScript
/**
* API URL constants for Drift protocol services
*
* These constants define the URLs used within the drift directory for various Drift services.
*/
export declare const API_URLS: {
/**
* Data API - Used for historical data, funding rates, candles, etc.
*/
readonly DATA_API: "https://data.api.drift.trade";
/**
* DLOB (Decentralized Limit Order Book) Server - Used for auction parameters, priority fees, etc.
*/
readonly DLOB: "https://dlob.drift.trade";
/**
* Swift Server - Used for signed message (gasless) orders
*/
readonly SWIFT: "https://swift.drift.trade";
};
/**
* API endpoints for specific functionality
*/
export declare const API_ENDPOINTS: {
readonly FUNDING_RATES: "/fundingRates";
readonly BATCH_PRIORITY_FEES: "/batchPriorityFees";
readonly AUCTION_PARAMS: "/auctionParams";
};