You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,10 @@ using the [Trading Strategy Executor Framework](https://github.com/geniusyield/s
75
75
Thanks to the programming language agnostic RESTful API, any modern programming
76
76
language could be used to implement trading strategies and/or SOR, MMBs.
77
77
78
-
Intergration with the Genius Yield DEX has never been easier.
78
+
Integration with the Genius Yield DEX has never been easier.
79
+
80
+
> [!TIP]
81
+
> Have a look at sample configuration in [Building locally from source using the Haskell Toolchain](#building-locally-from-source-using-the-haskell-toolchain) section for thorough explanation of options made available to configure the server.
79
82
80
83
### Building locally from source using Docker
81
84
@@ -106,20 +109,16 @@ For details please see the following section:
106
109
107
110
```yaml
108
111
# Blockchain provider used by Atlas, our off-chain transaction building tool.
109
-
# Supported values of `coreProvider` represented as JSON for brevity:
110
-
# Local node in combination of Kupo, `{ socketPath: string, kupoUrl: string }`
# Note that Blockfrost is not recommended as some of the operations performed aren't optimal with it.
112
+
# Head over to https://atlas-app.io/getting-started/endpoints#providing-data-provider section to know how to configure `coreProvider` and what all options are available for it.
114
113
coreProvider:
115
114
maestroToken: YOUR_MAESTRO_TOKEN
116
115
turboSubmit: false
117
116
# Network id, only `mainnet` and `preprod` are supported for at the moment.
118
117
networkId: mainnet
119
118
# Logging configuration. It's an array to cater for potentially multiple scribes.
119
+
# See it's description mentioned at https://atlas-app.io/getting-started/endpoints#providing-data-provider for more information.
120
120
logging:
121
121
- type:
122
-
# TODO: Possible values of `tag` are to be documented.
123
122
tag: stderr
124
123
# Possible values of `severity` are `Debug`, `Info`, `Warning` and `Error`.
@@ -344,7 +361,7 @@ type CommonCollateralText ∷ Symbol
344
361
typeCommonCollateralText="Note that if \"collateral\" field is not provided, then framework would try to pick collateral UTxO on it's own and in that case would also be free to spend it (i.e., would be made available to coin balancer)."
345
362
346
363
typeCommonSignText∷Symbol
347
-
typeCommonSignText="It uses the signing key from configuration to compute for wallet address. If collateral is specified in the configuration, then it would be used for."
364
+
typeCommonSignText="This endpoint would also sign & submit the built transaction. It uses the signing key from configuration to compute for wallet address. If collateral is specified in the configuration, then it would be used for."
348
365
349
366
typeOrdersAPI=
350
367
Summary"Build transaction to create order"
@@ -354,7 +371,7 @@ type OrdersAPI =
354
371
:>ReqBody '[JSON] PlaceOrderParameters
355
372
:>Post '[JSON] PlaceOrderTransactionDetails
356
373
:<|>Summary"Create an order"
357
-
:>Description ("Create an order. This endpoint would also sign & submit the built transaction. " `AppendSymbol` CommonSignText `AppendSymbol` "\"stakeAddress\" field from configuration, if provided, is used to place order at a mangled address.")
374
+
:>Description ("Create an order. " `AppendSymbol` CommonSignText `AppendSymbol` "\"stakeAddress\" field from configuration, if provided, is used to place order at a mangled address.")
358
375
:>ReqBody '[JSON] BotPlaceOrderParameters
359
376
:>Post '[JSON] PlaceOrderTransactionDetails
360
377
:<|>Summary"Build transaction to cancel order(s)"
@@ -364,7 +381,7 @@ type OrdersAPI =
364
381
:>ReqBody '[JSON] CancelOrderParameters
365
382
:>Post '[JSON] CancelOrderTransactionDetails
366
383
:<|>Summary"Cancel order(s)"
367
-
:>Description ("Cancel order(s). This endpoint would also sign & submit the built transaction. " `AppendSymbol` CommonSignText)
:>Description"Get details of an order using it's unique NFT token. Note that each order is identified uniquely by an associated NFT token which can then later be used to retrieve it's details across partial fills."
logInfo ctx $"Getting order details for NFT token: "+|| ac ||+""
483
505
let porefs = dexPORefs ctxDexInfo
484
506
os ← runQuery ctx $fmap poiToOrderInfoDetailed <$> orderByNft porefs ac
485
507
case os of
486
-
Nothing→ throwIO PodOrderNotFound
487
-
Just o →pureSuccEnvelope o
508
+
Nothing→ throwIO PodOrderNotFound-- We could use `respond` here as well but then as it would not have @application/json@ header, it would not be caught by our @errorJsonWrapMiddleware@.
Map.foldlWithKey' (\acc ac amt → acc <> valueSingleton ac (roundFunctionForPOCVersion overallPocVersion $toRational amt * rationalToGHC takerFeeRatio)) mempty takerACWithAmt
0 commit comments