mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-16 08:00:10 +03:00
Fix docs
This commit is contained in:
12
README.md
12
README.md
@@ -163,15 +163,15 @@ const pairsList = await simpleFetch(orionUnit.orionAggregator.getPairsList)();
|
|||||||
### Get swap info
|
### Get swap info
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { simpleFetch } from '@orionprotocol/sdk';
|
import { simpleFetch } from "@orionprotocol/sdk";
|
||||||
|
|
||||||
const swapInfo = await simpleFetch(orionUnit.orionAggregator.getSwapInfo)(
|
const swapInfo = await simpleFetch(orionUnit.orionAggregator.getSwapInfo)(
|
||||||
// Use 'exactSpend' when 'amount' is how much you want spend. Use 'exactReceive' otherwise
|
// Use 'exactSpend' when 'amount' is how much you want spend. Use 'exactReceive' otherwise
|
||||||
type: 'exactSpend',
|
"exactSpend", // type
|
||||||
assetIn: 'ORN',
|
"ORN", // asset in
|
||||||
assetOut: 'USDT',
|
"USDT", // asset out
|
||||||
amount: 6.23453457,
|
6.23453457, // amount
|
||||||
exchanges: ['ORION_POOL'] // OPTIONAL! Specify ['ORION_POOL'] if you want "pool only" swap execution
|
["ORION_POOL"] // Exchanges. OPTIONAL! Specify ['ORION_POOL'] if you want "pool only" swap execution
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user