File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# What the price
2
- Tool for cardano to get Dex SWAP operation, store it to the Database and broadcast it throught the websocket .
2
+ Tool for Cardano to get Dex SWAP operation, store it to the Database and broadcast it through the WebSocket .
3
3
4
4
## DEXes
5
- Current state is, that we have implemeneted 3 Dexes
5
+ We have implemented 3 Dexes
6
6
* WingRiders
7
7
* MinSwap
8
8
* SundaeSwap
@@ -11,16 +11,16 @@ Dex can have more versions and more addresses per version.
11
11
12
12
## Interface
13
13
* ` /health ` - Health check endpoint
14
- * ` /assets ` - List of assets presents in the database. This is place, where pair asset_id with name and policy
14
+ * ` /assets ` - List of assets present in the database. This is a place, where pair asset_id with name and policy
15
15
* ` /exchange_rates ` - Calculate exchange rate. There is no information about decimal numbers
16
16
* ` /mean_history/TOKEN1_ID/TOKEN2_ID?count=<number> ` - Return mean swap price for tokens. Mean is not AVG, but ration on the pool address
17
17
* ` /asset_swap/TOKEN1_ID/TOKEN2_ID?count=<number> ` - Return last swap price for tokens.
18
- * ` /socket/ ` - WebSocket enpoint for Live informatino about swap.
18
+ * ` /socket/ ` - WebSocket endpoint for Live information about the swap.
19
19
20
20
21
21
## Setting up
22
22
23
- Run a Postgres instance and create an empty databas for this project:
23
+ Run a Postgres instance and create an empty database for this project:
24
24
25
25
``` bash
26
26
export DATABASE_URL=' postgres://postgres:postgres@localhost:5432/wtp'
@@ -31,7 +31,7 @@ cargo run -- -s 'relays-new.cardano-mainnet.iohk.io:3001' -d $DATABASE_URL
31
31
32
32
## Development
33
33
34
- Add precommit hook:
34
+ Add pre-commit hook:
35
35
36
36
``` bash
37
37
ln -s ../../pre-commit.sh .git/hooks/pre-commit
You can’t perform that action at this time.
0 commit comments