@plasma-fi/sdk
Version:
🛠An SDK for building dapp on PlasmaSwap.
18 lines (17 loc) • 875 B
TypeScript
import { ChainId } from '../constants/constants';
import { Api0xPaginationRequest, Api0xPaginationResponse, Signed0xOrderWithMeta } from '../types';
export interface Fetch0xOrderbookQuery extends Api0xPaginationRequest {
/**
* The address of makerToken or takerToken designated as the base currency in the currency pair calculation of price.
*/
baseToken?: string;
/**
* The address of makerToken or takerToken designated as the quote currency in the currency pair calculation of price.
*/
quoteToken?: string;
}
export interface Fetch0xOrderbookResponse {
bids: Api0xPaginationResponse<Signed0xOrderWithMeta>;
asks: Api0xPaginationResponse<Signed0xOrderWithMeta>;
}
export declare function fetch0xOrderbook(chainId: ChainId, query: Fetch0xOrderbookQuery, abort?: AbortSignal): Promise<Fetch0xOrderbookResponse>;