-
Notifications
You must be signed in to change notification settings - Fork 7
/
TODO
66 lines (42 loc) · 2.27 KB
/
TODO
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
56
57
58
59
60
61
62
63
64
65
66
TODO:
- BUG: I've witnessed one case wehre secrets.json ends up with 'null' in it.
Attend to this.
- Make the config argumnet to open() optional, so you can forego the full
- Convert many of the examples to td-* tools, e.g., td-cancel-all.
- Rip out the schemas.
- Don't apply the cache on PUT methods and other writing ones.
- There ought to be a "dry_run" mode similar to readonly. I'm always building
this in my clients.
- Add an option to "bind" a main account to the API, so that you don't have to
carry the accountId all over the client code.
- Hide account id in logging.info().
- Make changes to options symbol library:
* Rename to symbols.py
* Rename generic OptionsSymbol functions to e.g. ParseTdSymbol() functions to be explicit.
* Support the third type of symbol (with a leading dot).
* Rename Option.symbol to Option.underlying
- Make the config argument to open() optional, so you can forego the full
>>>>>>> refs/remotes/origin/master
configuration. By default it should operate like config_from_dir(). Simplify.
A one liner is king.
- In order to fully test the schema, create a script to test out all the order
types and their responses. Generic output isn't great.
- Document better the way arguments are mapped to the request fields and query
parameters.
- Process and honor a --verbose flag with a dedicated logger for the API and
change all the example scripts to use that consistently.
- Document more clearly what the cache is and does, even I cannot remember after
all this time. Delete it actually... I don't need we really need it.
- Make the construction of Config() use keyword args and use that to connect
instead of open_with_dir(), so that we can implement ameritrade.check.
- Two-step is how it should be; validate the configuration, add unit tests.
- cache_read, cache_write, as options.
- This script is one that should create the configuration the first time if it
doesn't exist.
- Add support for PUT and PATCH methods.
- Support the streaming API, it's completely separate.
- Add argument data types to schema and check them.
- Support positional arguments, maybe?
- Implement unit tests for schema validation, and perhaps move some of it to a
dedicated module.
- Implement automatic logging of all traffic to/from the connection.