UNPKG

dexscreener-sdk

Version:

A TypeScript wrapper for the DEX Screener API, providing easy access to token profiles, boosts, orders, pairs, and more.

26 lines (25 loc) 801 B
import { BaseModel } from './BaseModel.js'; /** * Possible types of orders. */ export type OrderType = 'tokenProfile' | 'communityTakeover' | 'tokenAd' | 'trendingBarAd'; /** * Possible statuses for an order. */ export type OrderStatus = 'processing' | 'cancelled' | 'on-hold' | 'approved' | 'rejected'; /** * Order represents a payment order associated with a token. */ export declare class Order extends BaseModel { /** Timestamp indicating when the payment was made. */ paymentTimestamp: number; /** Type of order. */ type: OrderType; /** Current status of the order. */ status: OrderStatus; /** * Creates an instance of Order. * @param data Partial data to initialize the order. */ constructor(data: Partial<Order>); }