badlabs / trade-bot--tinkoff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick Start

Preparation

Install dependencies:

npm install

Create .env file with next variables:

TINKOFF_SANDBOX_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
BOT_TOKEN=qwerty123

Initialize local SQLite database:

npm run db-update

Run

Run robot in development mode:

npm run dev

or

run in production mode:

npm run start

Try it out

Check database

You can check robot local database by running

npm run db-browse

Check requests

We have Postman workspace for testing robots.

Other

Generate class diagram:

tplant --input lib/**/*.ts --output docs/class-diagram.puml

About

License:Apache License 2.0


Languages

Language:TypeScript 99.4%Language:Dockerfile 0.6%