/trade-bot--tinkoff

Primary LanguageTypeScriptApache License 2.0Apache-2.0

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