@typus/typus-perp-sdk 1.0.26 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TOKEN } from "@typus/typus-sdk/dist/src/constants";
|
|
2
|
-
type actionType = "Place Order" | "Cancel Order" | "Order Filled (Open Position)" | "Order Filled (Close Position)" | "Realized PnL" | "Modify Collateral" | "Exercise Position" | "Liquidation" | "Force Close Position " | "Swap";
|
|
3
|
-
type sideType = "Long" | "Short";
|
|
4
|
-
type orderType = "Market" | "Limit" | "Take Profit" | "Stop Loss";
|
|
5
|
-
type statusType = "Open" | "Filled" | "Canceled";
|
|
6
|
-
interface Event {
|
|
2
|
+
export type actionType = "Place Order" | "Cancel Order" | "Order Filled (Open Position)" | "Order Filled (Close Position)" | "Realized PnL" | "Modify Collateral" | "Exercise Position" | "Liquidation" | "Force Close Position " | "Swap";
|
|
3
|
+
export type sideType = "Long" | "Short";
|
|
4
|
+
export type orderType = "Market" | "Limit" | "Take Profit" | "Stop Loss";
|
|
5
|
+
export type statusType = "Open" | "Filled" | "Canceled";
|
|
6
|
+
export interface Event {
|
|
7
7
|
action: actionType;
|
|
8
8
|
typeName: string | undefined;
|
|
9
9
|
order_id: string | undefined;
|
|
@@ -25,4 +25,3 @@ export declare function parseUserHistory(raw_events: any): Promise<Event[]>;
|
|
|
25
25
|
export declare function getGraphQLEvents(module: string, sender: string, beforeCursor?: string | null): Promise<any>;
|
|
26
26
|
export declare function getLiquidateFromSentio(userAddress: string, startTimestamp: number): Promise<Event[]>;
|
|
27
27
|
export declare function getOrderMatchFromSentio(userAddress: string, startTimestamp: number): Promise<Event[]>;
|
|
28
|
-
export {};
|