Skip to content

Commit

Permalink
New dashboard image
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonboom committed May 24, 2022
1 parent 9adb7d8 commit 5a35c11
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -11,6 +11,10 @@ This is an example of how, following the principles of good architecture (depend
between layers, etc.), you can build basic blocks on top of any API, based on which **it will not be difficult to create
and test trading bots of any complexity**.

## Assumptions

It is assumed that the robot works only with ruble shares, using only a ruble account.

## Launch

```bash
Expand Down Expand Up @@ -87,7 +91,7 @@ $ make up
# Look at http://localhost:3000/
```

<img alt="Grafana Dashboard" src="docs/vis.png">
<img alt="Grafana Dashboard" src="docs/dashboard.png">

Teardown system and clean resources with
```bash
Expand Down
Binary file added docs/dashboard.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/vis.png
Binary file not shown.
1 change: 1 addition & 0 deletions internal/clients/tinkoffinvest/client.go
Expand Up @@ -14,6 +14,7 @@ import (

const (
codeNotEnoughAssetsForMarginTrade = "30042"
codePostOrderError = "30049" // nolint:deadcode,varcheck
)

type Client struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/services/portfolio-watcher/watcher.go
Expand Up @@ -14,7 +14,7 @@ import (

//go:generate mockgen -source=$GOFILE -destination=mocks/watcher_generated.go -package portfoliowatchermocks PortfolioDataProvider

const defaultInterval = 10 * time.Second
const defaultInterval = 5 * time.Second

type l = prometheus.Labels

Expand Down

0 comments on commit 5a35c11

Please sign in to comment.