-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.ts
More file actions
24 lines (18 loc) · 728 Bytes
/
index.ts
File metadata and controls
24 lines (18 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Helpers
import request from "./src/js/helpers/request.ts";
// Binance
import { credentials } from "./src/js/binance/signedRequest.ts";
import signedRequest from "./src/js/binance/signedRequest.ts";
// Config
import credentialsdata from "./src/config/credentials.js";
import botdata from "./src/config/bot.js";
// Bot
import { run } from "./src/js/bot/index.ts";
// Interfaces
import iOptions from "./src/js/bot/interface.ts";
// Set request
request.options.baseUrl = "https://api.binance.com/api/v3/";
signedRequest.options.baseUrl = "https://api.binance.com/api/v3/";
await credentials(credentialsdata.key, credentialsdata.secret);
// Start bot
await run(botdata as unknown as iOptions);