@usherlabs/cex-broker 0.1.10 → 0.1.11
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/commands/cli.js +17 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +4 -4
- package/dist/proto/node.proto +1 -0
- package/package.json +2 -2
package/dist/commands/cli.js
CHANGED
|
@@ -290160,7 +290160,8 @@ var Action = {
|
|
|
290160
290160
|
CancelOrder: 5,
|
|
290161
290161
|
FetchBalance: 6,
|
|
290162
290162
|
FetchBalances: 7,
|
|
290163
|
-
FetchDepositAddresses: 8
|
|
290163
|
+
FetchDepositAddresses: 8,
|
|
290164
|
+
FetchTicker: 9
|
|
290164
290165
|
};
|
|
290165
290166
|
|
|
290166
290167
|
// src/proto/cex_broker/SubscriptionType.ts
|
|
@@ -290481,6 +290482,21 @@ function getServer(policy, brokers, whitelistIps, useVerity, verityProverUrl) {
|
|
|
290481
290482
|
}, null);
|
|
290482
290483
|
}
|
|
290483
290484
|
break;
|
|
290485
|
+
case Action.FetchTicker:
|
|
290486
|
+
try {
|
|
290487
|
+
const ticker = await broker.fetchTicker(symbol);
|
|
290488
|
+
callback(null, {
|
|
290489
|
+
proof: broker.last_proof || "",
|
|
290490
|
+
result: JSON.stringify(ticker)
|
|
290491
|
+
});
|
|
290492
|
+
} catch (error) {
|
|
290493
|
+
log.error(`Error fetching ticker from ${cex3}:`, error);
|
|
290494
|
+
callback({
|
|
290495
|
+
code: grpc.status.INTERNAL,
|
|
290496
|
+
message: `Failed to fetch ticker from ${cex3}`
|
|
290497
|
+
}, null);
|
|
290498
|
+
}
|
|
290499
|
+
break;
|
|
290484
290500
|
default:
|
|
290485
290501
|
return callback({
|
|
290486
290502
|
code: grpc.status.INVALID_ARGUMENT,
|
package/dist/index.js
CHANGED
|
@@ -285207,7 +285207,8 @@ var Action = {
|
|
|
285207
285207
|
CancelOrder: 5,
|
|
285208
285208
|
FetchBalance: 6,
|
|
285209
285209
|
FetchBalances: 7,
|
|
285210
|
-
FetchDepositAddresses: 8
|
|
285210
|
+
FetchDepositAddresses: 8,
|
|
285211
|
+
FetchTicker: 9
|
|
285211
285212
|
};
|
|
285212
285213
|
|
|
285213
285214
|
// src/proto/cex_broker/SubscriptionType.ts
|
|
@@ -285528,6 +285529,21 @@ function getServer(policy, brokers, whitelistIps, useVerity, verityProverUrl) {
|
|
|
285528
285529
|
}, null);
|
|
285529
285530
|
}
|
|
285530
285531
|
break;
|
|
285532
|
+
case Action.FetchTicker:
|
|
285533
|
+
try {
|
|
285534
|
+
const ticker = await broker.fetchTicker(symbol);
|
|
285535
|
+
callback(null, {
|
|
285536
|
+
proof: broker.last_proof || "",
|
|
285537
|
+
result: JSON.stringify(ticker)
|
|
285538
|
+
});
|
|
285539
|
+
} catch (error) {
|
|
285540
|
+
log.error(`Error fetching ticker from ${cex3}:`, error);
|
|
285541
|
+
callback({
|
|
285542
|
+
code: grpc.status.INTERNAL,
|
|
285543
|
+
message: `Failed to fetch ticker from ${cex3}`
|
|
285544
|
+
}, null);
|
|
285545
|
+
}
|
|
285546
|
+
break;
|
|
285531
285547
|
default:
|
|
285532
285548
|
return callback({
|
|
285533
285549
|
code: grpc.status.INVALID_ARGUMENT,
|
|
@@ -286125,4 +286141,4 @@ export {
|
|
|
286125
286141
|
CEXBroker as default
|
|
286126
286142
|
};
|
|
286127
286143
|
|
|
286128
|
-
//# debugId=
|
|
286144
|
+
//# debugId=DEA73F64725EF87564756E2164756E21
|