src/api/order/market.ts
import OrderAction from "./enum/order-action";
import { OrderType } from "./enum/orderType";
/**
* Represents a limit order.
*/
export class MarketOrder {
constructor(
public action: OrderAction,
public totalQuantity: number,
public transmit?: boolean,
public goodAfterTime?: string,
public goodTillDate?: string
) {
this.transmit = this.transmit ?? true;
this.goodAfterTime = this.goodAfterTime ?? "";
this.goodTillDate = this.goodTillDate ?? "";
}
public orderType = OrderType.MKT;
}
export default MarketOrder;