@xoxno/types 1.0.333 → 1.0.335

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,4 +1,4 @@
1
- import { PerpCoinTypes, PerpDepositAsset, SpotDepositAsset } from '../../enums/perp.enum';
1
+ import { PerpAgainstAsset, PerpCoinTypes, PerpDepositAsset, SpotDepositAsset } from '../../enums/perp.enum';
2
2
  import { MarginTable } from './margin-table';
3
3
  import { ActiveSpotAssetCtx, ActivePerpAssetCtx } from './response';
4
4
  export declare class PerpConfig {
@@ -13,7 +13,7 @@ export declare class PerpSingleCoin {
13
13
  export declare class PerpSingleAgainstCoin {
14
14
  identifier: string;
15
15
  decimals: number;
16
- symbol: PerpDepositAsset | SpotDepositAsset;
16
+ symbol: PerpDepositAsset | SpotDepositAsset | PerpAgainstAsset;
17
17
  }
18
18
  export declare class PerpCoin {
19
19
  symbol: string;
@@ -67,6 +67,9 @@ export declare enum PerpPositionLeverageDirection {
67
67
  ONE_WAY = "oneWay",
68
68
  HEDGE = "hedge"
69
69
  }
70
+ export declare enum PerpAgainstAsset {
71
+ USD = "USD"
72
+ }
70
73
  export declare enum SpotDepositAsset {
71
74
  EGLD = "EGLD",
72
75
  SOL = "SOL",
@@ -149,3 +152,7 @@ export declare enum PerpOrderDetailedStatus {
149
152
  ORACLE_REJECTED = "oracleRejected",// Price too far from oracle
150
153
  PERP_MAX_POSITION_REJECTED = "perpMaxPositionRejected"
151
154
  }
155
+ export declare enum PerpTransferType {
156
+ SPOT = "Spot",
157
+ PERP = "Perps"
158
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PerpOrderDetailedStatus = exports.PerpOrderDirection = exports.PerpOrderDetailedType = exports.PerpOrderStatus = exports.PerpOrderType = exports.PerpOrderTpsl = exports.PerpOrderTimeInForce = exports.PerpOrderGrouping = exports.PerpDepositAsset = exports.SpotDepositAsset = exports.PerpPositionLeverageDirection = exports.PerpPositionLeverageType = exports.PerpAssetExchange = exports.PerpAssetSession = exports.PerpAssetType = exports.PerpAssetTimezone = exports.PerpAssetIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
3
+ exports.PerpTransferType = exports.PerpOrderDetailedStatus = exports.PerpOrderDirection = exports.PerpOrderDetailedType = exports.PerpOrderStatus = exports.PerpOrderType = exports.PerpOrderTpsl = exports.PerpOrderTimeInForce = exports.PerpOrderGrouping = exports.PerpDepositAsset = exports.SpotDepositAsset = exports.PerpAgainstAsset = exports.PerpPositionLeverageDirection = exports.PerpPositionLeverageType = exports.PerpAssetExchange = exports.PerpAssetSession = exports.PerpAssetType = exports.PerpAssetTimezone = exports.PerpAssetIntervals = exports.PerpCoinTypes = exports.PerpTradesSide = exports.PerpEnum = void 0;
4
4
  var PerpEnum;
5
5
  (function (PerpEnum) {
6
6
  PerpEnum["L2BOOK"] = "l2Book";
@@ -80,6 +80,10 @@ var PerpPositionLeverageDirection;
80
80
  PerpPositionLeverageDirection["ONE_WAY"] = "oneWay";
81
81
  PerpPositionLeverageDirection["HEDGE"] = "hedge";
82
82
  })(PerpPositionLeverageDirection || (exports.PerpPositionLeverageDirection = PerpPositionLeverageDirection = {}));
83
+ var PerpAgainstAsset;
84
+ (function (PerpAgainstAsset) {
85
+ PerpAgainstAsset["USD"] = "USD";
86
+ })(PerpAgainstAsset || (exports.PerpAgainstAsset = PerpAgainstAsset = {}));
83
87
  var SpotDepositAsset;
84
88
  (function (SpotDepositAsset) {
85
89
  SpotDepositAsset["EGLD"] = "EGLD";
@@ -177,3 +181,8 @@ var PerpOrderDetailedStatus;
177
181
  PerpOrderDetailedStatus["ORACLE_REJECTED"] = "oracleRejected";
178
182
  PerpOrderDetailedStatus["PERP_MAX_POSITION_REJECTED"] = "perpMaxPositionRejected";
179
183
  })(PerpOrderDetailedStatus || (exports.PerpOrderDetailedStatus = PerpOrderDetailedStatus = {}));
184
+ var PerpTransferType;
185
+ (function (PerpTransferType) {
186
+ PerpTransferType["SPOT"] = "Spot";
187
+ PerpTransferType["PERP"] = "Perps";
188
+ })(PerpTransferType || (exports.PerpTransferType = PerpTransferType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.333",
3
+ "version": "1.0.335",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {