@stellar/stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
21 lines (20 loc) • 560 B
TypeScript
import { AssetType } from "@stellar/stellar-base";
import { HorizonApi } from "../horizon_api";
export interface OfferAsset {
asset_type: AssetType;
asset_code?: string;
asset_issuer?: string;
}
export interface OfferRecord extends HorizonApi.BaseResponse {
id: number | string;
paging_token: string;
seller: string;
selling: OfferAsset;
buying: OfferAsset;
amount: string;
price_r: HorizonApi.PriceRShorthand;
price: string;
last_modified_ledger: number;
last_modified_time: string;
sponsor?: string;
}