Added "GET_PRICE" action.

This commit is contained in:
CalDescent
2023-01-19 20:47:06 +00:00
parent 86d6037af3
commit 57eacbdd59
3 changed files with 28 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ Here is a list of currently supported actions:
- FETCH_BLOCK
- FETCH_BLOCK_RANGE
- SEARCH_TRANSACTIONS
- GET_PRICE
More functionality will be added in the future.
@@ -392,6 +393,16 @@ let res = await qortalRequest({
});
```
### Get an estimate of the QORT price
```
let res = await qortalRequest({
action: "GET_PRICE",
blockchain: "LITECOIN",
// maxtrades: 10,
inverse: true
});
```
## Sample App