From 14761c28289a64a885bddafe4523a2eec0a62fd4 Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Wed, 13 Jul 2022 10:31:56 +0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 72df98e..1095f0e 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ orionUnit.exchange ### Make swap market +```ts // Each trading pair has its own quantity precision // You need to prepare (round) the quantity according to quantity precision @@ -146,7 +147,6 @@ const { qtyPrecision } = pairConfig; const amount = 23.5346563; const roundedAmount = new BigNumber(amount).dp(qtyPrecision, BigNumber.ROUND_FLOOR); // You can use you own Math lib -```ts orionUnit.exchange .swapMarket({ type: "exactSpend",