Skip to content

Commit

Permalink
feat: adding type GTC for timeInForce
Browse files Browse the repository at this point in the history
  • Loading branch information
Laloww committed Aug 13, 2024
1 parent 4f9ac3d commit 05bad05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export enum AssetType {
export enum LimitType {
IOC = "IOC",
FOK = "FOK",
GTC = "GTC"
GTC = "GTC",
}

export type Status = "Active" | "Canceled" | "Closed";
Expand Down Expand Up @@ -124,8 +124,8 @@ export interface GetActiveOrdersParams {
}

export type ActiveOrderReturn<T extends OrderType> = T extends OrderType.Buy
? { ActiveBuyOrder: Order[] }
: { ActiveSellOrder: Order[] };
? { ActiveBuyOrder: Order[] }
: { ActiveSellOrder: Order[] };

export interface CreateOrderParams {
amount: string;
Expand Down

0 comments on commit 05bad05

Please sign in to comment.