parent
6686489c06
commit
59a723aec8
@ -163,6 +163,8 @@ python3 scripts/rest_client.py --config rest_config.json <command> [optional par
|
|||||||
| `strategy <strategy>` | Get specific Strategy content. **Alpha**
|
| `strategy <strategy>` | Get specific Strategy content. **Alpha**
|
||||||
| `available_pairs` | List available backtest data. **Alpha**
|
| `available_pairs` | List available backtest data. **Alpha**
|
||||||
| `version` | Show version.
|
| `version` | Show version.
|
||||||
|
| `sysinfo` | Show informations about the system load.
|
||||||
|
| `health` | Show bot health (last bot loop).
|
||||||
|
|
||||||
!!! Warning "Alpha status"
|
!!! Warning "Alpha status"
|
||||||
Endpoints labeled with *Alpha status* above may change at any time without notice.
|
Endpoints labeled with *Alpha status* above may change at any time without notice.
|
||||||
@ -227,6 +229,11 @@ forceexit
|
|||||||
Force-exit a trade.
|
Force-exit a trade.
|
||||||
|
|
||||||
:param tradeid: Id of the trade (can be received via status command)
|
:param tradeid: Id of the trade (can be received via status command)
|
||||||
|
:param ordertype: Order type to use (must be market or limit)
|
||||||
|
:param amount: Amount to sell. Full sell if not given
|
||||||
|
|
||||||
|
health
|
||||||
|
Provides a quick health check of the running bot.
|
||||||
|
|
||||||
locks
|
locks
|
||||||
Return current locks
|
Return current locks
|
||||||
@ -312,6 +319,7 @@ version
|
|||||||
|
|
||||||
whitelist
|
whitelist
|
||||||
Show the current whitelist.
|
Show the current whitelist.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### OpenAPI interface
|
### OpenAPI interface
|
||||||
|
@ -361,6 +361,13 @@ class FtRestClient():
|
|||||||
"""
|
"""
|
||||||
return self._get("sysinfo")
|
return self._get("sysinfo")
|
||||||
|
|
||||||
|
def health(self):
|
||||||
|
"""Provides a quick health check of the running bot.
|
||||||
|
|
||||||
|
:return: json object
|
||||||
|
"""
|
||||||
|
return self._get("health")
|
||||||
|
|
||||||
|
|
||||||
def add_arguments():
|
def add_arguments():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
Loading…
Reference in New Issue
Block a user