mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-27 08:07:46 +03:00
Fix README.md
This commit is contained in:
21
README.md
21
README.md
@@ -119,24 +119,23 @@ const swapInfo = await orionUnit.orionAggregator.getSwapInfo(
|
||||
### Place order in Orion Aggregator
|
||||
|
||||
```ts
|
||||
|
||||
const { orderId } = await orionUnit.orionAggregator.placeOrder(
|
||||
{
|
||||
senderAddress: '0x61eed69c0d112c690fd6f44bb621357b89fbe67f',
|
||||
matcherAddress: '0xfbcad2c3a90fbd94c335fbdf8e22573456da7f68',
|
||||
baseAsset: '0xf223eca06261145b3287a0fefd8cfad371c7eb34',
|
||||
quoteAsset: '0xcb2951e90d8dcf16e1fa84ac0c83f48906d6a744',
|
||||
matcherFeeAsset: '0xf223eca06261145b3287a0fefd8cfad371c7eb34',
|
||||
amount: 500000000
|
||||
senderAddress: "0x61eed69c0d112c690fd6f44bb621357b89fbe67f",
|
||||
matcherAddress: "0xfbcad2c3a90fbd94c335fbdf8e22573456da7f68",
|
||||
baseAsset: "0xf223eca06261145b3287a0fefd8cfad371c7eb34",
|
||||
quoteAsset: "0xcb2951e90d8dcf16e1fa84ac0c83f48906d6a744",
|
||||
matcherFeeAsset: "0xf223eca06261145b3287a0fefd8cfad371c7eb34",
|
||||
amount: 500000000,
|
||||
price: 334600000,
|
||||
matcherFee: '29296395', // Orion Fee + Network Fee
|
||||
nonce: 1650345051276
|
||||
expiration: 1652850651276
|
||||
matcherFee: 29296395, // Orion Fee + Network Fee
|
||||
nonce: 1650345051276,
|
||||
expiration: 1652850651276,
|
||||
buySide: 0,
|
||||
isPersonalSign: false, // https://docs.metamask.io/guide/signing-data.html#a-brief-history
|
||||
},
|
||||
false // Place in internal orderbook
|
||||
)
|
||||
);
|
||||
```
|
||||
|
||||
### Orion Aggregator WebSocket
|
||||
|
||||
Reference in New Issue
Block a user