UNPKG

ftx-api-typed

Version:

Node.js/typescript connector for FTX's REST APIs and WebSockets

103 lines (102 loc) 2.62 kB
export interface NftInfo { id: number; name: string; description: string; issuer: string; collection: string; series: string; solMintAddress: string; ethContractAddress: string; imageUrl: string; videoUrl?: string; attributes?: string | null; redeemable: boolean; redeemed: boolean; offerPrice: number; auction: Array<{ bestBid: number; minNextBid: number; endTime: string; bids: number; }>; } export declare type NftList = Array<NftInfo>; export declare type NftBalances = NftList; export interface NftTrade { id: number; price: number; time: string; } export declare type NftTrades = Array<NftTrade>; export interface AllNftTrade extends NftTrade { nft: NftList; } export declare type AllNftTrades = Array<AllNftTrade>; export interface NftCollection { issuer: string; collection: string; } export declare type NftCollections = Array<NftCollection>; export interface NftAccountInfo { bid: number; buyFee: number; isBestBid: boolean; owned: boolean; } export interface NftFill { id: number; nft: NftList; side: "buy"; price: number; fee: number; time: string; } export declare type NftFills = Array<NftFill>; export declare type NftDepositStatus = "unconfirmed" | "confirmed" | "cancelled"; export interface NftDeposit { id: number; nft: NftList; status: NftDepositStatus; /** @description created at * @example "2021-06-10T09:15:43.136561+00:00" */ time: string; sentTime: string; confirmedTime: string; confirmations: number; } export declare type NftDeposits = Array<NftDeposit>; export declare type NftWithdrawalMethod = "erc20" | "sol"; export declare type NftWithdrawalStatus = "requested" | "processing" | "sent" | "completed" | "cancelled"; export interface NftWithdrawal { id: number; nft: NftList; address: string; method: NftWithdrawalMethod; /** @example "0x8078356ae4b06a036d64747546c274af19581f1c78c510b60505798a7ffcaf1" */ txid: string; fee: number; status: NftWithdrawalStatus; /** @description created at * @example "2021-06-10T09:15:43.136561+00:00" */ time: string; notes: string | null; } export declare type NftWithdrawals = Array<NftWithdrawal>; export interface NftGallery { name: string; nfts: NftList; } export interface NftGallerySettings { id: number; public: boolean; } export interface NftRedemption { id: number; nft: NftList; time: string; notes: null; address: string; status: "confirmed"; }