-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathparams.rkt
55 lines (36 loc) · 1.12 KB
/
params.rkt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#lang racket/base
(require gregor)
(provide api-token
bearish?
db-host
db-user
db-name
db-pass
email-user
email-pass
filename
finviz-user
finviz-pass
ibkr-hostname
ibkr-port-no
save-markets
save-end-date
sim-start-date
sim-end-date)
(define api-token (make-parameter ""))
(define bearish? (make-parameter #f))
(define db-host (make-parameter "127.0.0.1"))
(define db-user (make-parameter "user"))
(define db-name (make-parameter "local"))
(define db-pass (make-parameter ""))
(define email-user (make-parameter ""))
(define email-pass (make-parameter ""))
(define filename (make-parameter ""))
(define finviz-user (make-parameter ""))
(define finviz-pass (make-parameter ""))
(define ibkr-hostname (make-parameter "127.0.0.1"))
(define ibkr-port-no (make-parameter 7497))
(define save-markets (make-parameter "SPY,MDY,SLY,SPSM"))
(define save-end-date (make-parameter (today)))
(define sim-start-date (make-parameter (-years (today) 1)))
(define sim-end-date (make-parameter (today)))