@firefly-exchange/library-sui
Version:
Sui library housing helper methods, classes to interact with Bluefin protocol(s) deployed on Sui
24 lines (23 loc) • 598 B
TypeScript
import { PositionType, Side } from "../types";
import { Address, ID, NumStr } from "../../types";
import { IOrder } from "./ISerializable";
export interface IOrderCreation {
ids?: ID | Address;
market?: string;
account?: Address;
price?: NumStr;
quantity?: NumStr;
leverage?: NumStr;
side?: Side;
positionType?: PositionType;
expiration?: number;
salt?: number;
signedAt?: number;
}
export interface ISignedOrder extends IOrder {
hash: string;
signature: string;
}
export interface ICompleteOrder extends ISignedOrder {
serialized: string;
}