rawExchangeRestrictions

This commit is contained in:
Kirill Litvinov
2023-12-26 21:22:18 +03:00
parent c7269f534e
commit 8eea148a5f
4 changed files with 6 additions and 5 deletions

View File

@@ -198,6 +198,7 @@ class Aggregator {
partnerId?: string,
fromWidget?: boolean,
source?: string,
rawExchangeRestrictions?: string | undefined,
) => {
const headers = {
'Content-Type': 'application/json',
@@ -228,7 +229,7 @@ class Aggregator {
{
headers,
method: 'POST',
body: JSON.stringify(signedOrder),
body: JSON.stringify({ signedOrder, rawExchangeRestrictions }),
},
errorSchema,
);

View File

@@ -40,7 +40,7 @@ type SwapInfoSubscriptionPayload = {
i: string // asset in
o: string // asset out
a: number // amount IN/OUT
es?: string[] | 'cex' | 'pools' // exchange list of all cex or all pools (ORION_POOL, UNISWAP, PANCAKESWAP etc)
es?: string // exchange list of all cex or all pools (ORION_POOL, UNISWAP, PANCAKESWAP etc)
e?: boolean // is amount IN? Value `false` means a = amount OUT, `true` if omitted
is?: boolean // instant settlement
}