@cks-systems/manifest-sdk
Version:
TypeScript SDK for Manifest
30 lines (29 loc) • 1.11 kB
TypeScript
/**
* FillLogResult is the message sent to subscribers of the FillFeed
*/
export type FillLogResult = {
/** Public key for the market as base58. */
market: string;
/** Public key for the maker as base58. */
maker: string;
/** Public key for the taker as base58. */
taker: string;
/** Number of base atoms traded. */
baseAtoms: string;
/** Number of quote atoms traded. */
quoteAtoms: string;
/** Price as float. Quote atoms per base atom. Client is responsible for translating to tokens. */
priceAtoms: number;
/** Boolean to indicate which side the trade was. */
takerIsBuy: boolean;
/** Boolean to indicate whether the maker side is global. */
isMakerGlobal: boolean;
/** Sequential number for every order placed / matched wraps around at u64::MAX */
makerSequenceNumber: string;
/** Sequential number for every order placed / matched wraps around at u64::MAX */
takerSequenceNumber: string;
/** Slot number of the fill. */
slot: number;
/** Signature of the tx where the fill happened. */
signature: string;
};