@nightlylabs/dex-sdk 0.3.30 → 0.3.31
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/dist/index.cjs +8 -4
- package/dist/index.js +8 -4
- package/package.json +5 -1
package/dist/index.cjs
CHANGED
|
@@ -24084,13 +24084,17 @@ var Client = class _Client {
|
|
|
24084
24084
|
if (timestampEndMs && timestampStartMs && timestampEndMs > timestampStartMs) {
|
|
24085
24085
|
throw new Error("timestampEndMs must be lower than timestampStartMs");
|
|
24086
24086
|
}
|
|
24087
|
-
const
|
|
24087
|
+
const request = {
|
|
24088
24088
|
marketName,
|
|
24089
24089
|
interval,
|
|
24090
|
-
|
|
24091
|
-
|
|
24090
|
+
newerTimestampMs: timestampStartMs.toString(),
|
|
24091
|
+
olderTimestampMs: timestampEndMs.toString(),
|
|
24092
24092
|
paginationCursor: cursor
|
|
24093
|
-
}
|
|
24093
|
+
};
|
|
24094
|
+
const response = await this.sendGetJson(
|
|
24095
|
+
"/v1/public/chart_candles_in_range" /* GetChartCandlesInRange */,
|
|
24096
|
+
request
|
|
24097
|
+
);
|
|
24094
24098
|
return response;
|
|
24095
24099
|
};
|
|
24096
24100
|
this.getPriceIndexes = async () => {
|
package/dist/index.js
CHANGED
|
@@ -24042,13 +24042,17 @@ var Client = class _Client {
|
|
|
24042
24042
|
if (timestampEndMs && timestampStartMs && timestampEndMs > timestampStartMs) {
|
|
24043
24043
|
throw new Error("timestampEndMs must be lower than timestampStartMs");
|
|
24044
24044
|
}
|
|
24045
|
-
const
|
|
24045
|
+
const request = {
|
|
24046
24046
|
marketName,
|
|
24047
24047
|
interval,
|
|
24048
|
-
|
|
24049
|
-
|
|
24048
|
+
newerTimestampMs: timestampStartMs.toString(),
|
|
24049
|
+
olderTimestampMs: timestampEndMs.toString(),
|
|
24050
24050
|
paginationCursor: cursor
|
|
24051
|
-
}
|
|
24051
|
+
};
|
|
24052
|
+
const response = await this.sendGetJson(
|
|
24053
|
+
"/v1/public/chart_candles_in_range" /* GetChartCandlesInRange */,
|
|
24054
|
+
request
|
|
24055
|
+
);
|
|
24052
24056
|
return response;
|
|
24053
24057
|
};
|
|
24054
24058
|
this.getPriceIndexes = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nightlylabs/dex-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"testnet:add-token-to-oracle": "bun scripts/testnet/testnet-addTokenToOracle.ts",
|
|
38
38
|
"testnet:add-token": "bun scripts/testnet/testnet-addToken.ts",
|
|
39
39
|
"testnet:add-perp-market": "bun scripts/testnet/testnet-addPerpMarket.ts",
|
|
40
|
+
"testnet:add-spot-market": "bun scripts/testnet/testnet-addSpotMarket.ts",
|
|
40
41
|
"testnet:test-indexer": "bun scripts/testnet/testnet-testIndexer.ts",
|
|
41
42
|
"testnet:update-oracle-prices": "bun scripts/testnet/testnet-updateOraclePrices.ts",
|
|
42
43
|
"testnet:settle-user": "bun scripts/testnet/testnet-settleUser.ts",
|
|
@@ -48,10 +49,12 @@
|
|
|
48
49
|
"mainnet:setup-exchange": "bun scripts/mainnet/mainnet-setupExchange.ts",
|
|
49
50
|
"mainnet:init-exchange": "bun scripts/mainnet/mainnet-initExchange.ts",
|
|
50
51
|
"mainnet:add-dev": "bun scripts/mainnet/mainnet-addDev.ts",
|
|
52
|
+
"mainnet:add-api-key": "bun scripts/mainnet/mainnet-addApiKey.ts",
|
|
51
53
|
"mainnet:remove-dev": "bun scripts/mainnet/mainnet-removeDev.ts",
|
|
52
54
|
"mainnet:add-token-to-oracle": "bun scripts/mainnet/mainnet-addTokenToOracle.ts",
|
|
53
55
|
"mainnet:add-token": "bun scripts/mainnet/mainnet-addToken.ts",
|
|
54
56
|
"mainnet:add-perp-market": "bun scripts/mainnet/mainnet-addPerpMarket.ts",
|
|
57
|
+
"mainnet:add-spot-market": "bun scripts/mainnet/mainnet-addSpotMarket.ts",
|
|
55
58
|
"mainnet:settle-user": "bun scripts/mainnet/mainnet-settleUser.ts",
|
|
56
59
|
"mainnet:settle-market": "bun scripts/mainnet/mainnet-settleMarket.ts",
|
|
57
60
|
"mainnet:set-fee-data": "bun scripts/mainnet/mainnet-setFeeData.ts",
|
|
@@ -76,6 +79,7 @@
|
|
|
76
79
|
},
|
|
77
80
|
"devDependencies": {
|
|
78
81
|
"@changesets/cli": "2.29.8",
|
|
82
|
+
"@infisical/sdk": "^4.0.6",
|
|
79
83
|
"@ledgerhq/hw-app-aptos": "6.35.0",
|
|
80
84
|
"@ledgerhq/hw-transport-node-hid": "6.30.0",
|
|
81
85
|
"@thalalabs/surf": "1.9.3",
|