cryptobot-types 1.1.3 → 1.1.4
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.
- package/package.json +1 -1
- package/types/orderHelper.d.ts +3 -0
package/package.json
CHANGED
package/types/orderHelper.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PositionSide } from "okx-api";
|
|
2
|
+
|
|
1
3
|
interface BasePosition {
|
|
2
4
|
symbol: string;
|
|
3
5
|
type: "long" | "short";
|
|
@@ -19,6 +21,7 @@ interface OptionalPositionInfo {
|
|
|
19
21
|
export interface Position extends BasePosition, OptionalPositionInfo {
|
|
20
22
|
unrealizedPnlUSD: number;
|
|
21
23
|
unrealizedPnlPcnt: number;
|
|
24
|
+
posSide: PositionSide;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
export interface ClosedPosition extends BasePosition, OptionalPositionInfo {
|