mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 22:52:36 +03:00
Small fix
This commit is contained in:
committed by
meafmira
parent
bddc719d97
commit
4979d98877
@@ -86,9 +86,8 @@ type PairsConfigSubscription = {
|
||||
}
|
||||
|
||||
type PairConfigSubscription = {
|
||||
callback: ({ data }: {
|
||||
data: AssetPairUpdate,
|
||||
}) => void,
|
||||
payload: string,
|
||||
callback: (data: AssetPairUpdate) => void,
|
||||
}
|
||||
|
||||
type AggregatedOrderbookSubscription = {
|
||||
@@ -422,9 +421,7 @@ class OrionAggregatorWS {
|
||||
const pair = json;
|
||||
const [, minQty, pricePrecision] = pair.u;
|
||||
|
||||
this.subscriptions[SubscriptionType.ASSET_PAIR_CONFIG_UPDATES_SUBSCRIBE]?.[json.id]?.callback({
|
||||
data: { minQty, pricePrecision },
|
||||
});
|
||||
this.subscriptions[SubscriptionType.ASSET_PAIR_CONFIG_UPDATES_SUBSCRIBE]?.[json.id]?.callback({ minQty, pricePrecision });
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ const assetPairConfigSchema = baseMessageSchema.extend({
|
||||
u: z.tuple([
|
||||
z.string(), // pairName
|
||||
z.number(), // minQty
|
||||
z.number(), // pricePrecision
|
||||
z.number().int(), // pricePrecision
|
||||
]),
|
||||
});
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ const assetPairsConfigSchema = baseMessageSchema.extend({
|
||||
z.tuple([
|
||||
z.string(), // pairName
|
||||
z.number(), // minQty
|
||||
z.number(), // pricePrecision
|
||||
z.number().int(), // pricePrecision
|
||||
]),
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user