From 53e6fc0da7b20942e16348461598558f308289c5 Mon Sep 17 00:00:00 2001 From: TrooperCrypto Date: Mon, 3 Jul 2023 18:44:31 +0200 Subject: [PATCH] more reasonable quote margin --- src/api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api.ts b/src/api.ts index 07dbb731..4cd21129 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1695,7 +1695,7 @@ export default class API extends EventEmitter { : baseQuantity * ladderPrice hardPrice = hardQuoteQuantity / hardBaseQuantity - softPrice = hardPrice * 1.0025 + softPrice = hardPrice * 1.0015 } else { const { bids } = liquidity ladderPrice = API.getQuoteFromLadder(bids as any[][], baseQuantity) @@ -1705,7 +1705,7 @@ export default class API extends EventEmitter { : baseQuantity * ladderPrice hardPrice = hardQuoteQuantity / hardBaseQuantity - softPrice = hardPrice * 0.9975 + softPrice = hardPrice * 0.9985 } softBaseQuantity = baseQuantity @@ -1728,7 +1728,7 @@ export default class API extends EventEmitter { : quoteQuantity / ladderPrice hardPrice = hardQuoteQuantity / hardBaseQuantity - softPrice = hardPrice * 1.0025 + softPrice = hardPrice * 1.0015 } else { const bids = liquidity.bids.map((l: any) => [ l[0], @@ -1741,7 +1741,7 @@ export default class API extends EventEmitter { : quoteQuantity / ladderPrice hardPrice = hardQuoteQuantity / hardBaseQuantity - softPrice = hardPrice * 0.9975 + softPrice = hardPrice * 0.9985 } softQuoteQuantity = quoteQuantity