Commit Graph

24 Commits (4eb9b68b0e6e69d03294dc0f16120e10ec4ab3d1)

Author SHA1 Message Date
jaredgoldman 6ccdb8cbf8 Ensure to cleanup by passing fixture in paper_test signature 2023-02-26 13:12:11 -05:00
jaredgoldman 884ddc2552 Ensure config path is being updated with _testing correctly during testing 2023-02-26 13:12:11 -05:00
jaredgoldman c8e6312044 Reformat fake fill in paper engine,
Ensure tests pass, refactor test wrapper
2023-02-26 13:12:11 -05:00
algorandpa b80dfe4f9c Use constants value for test config dir path 2023-02-26 13:12:11 -05:00
algorandpa 6257cc8dae Use Path.mkdir instead of os.mkdir 2023-02-26 13:12:11 -05:00
algorandpa f307197031 Remove broken import 2023-02-26 13:12:11 -05:00
algorandpa cf0b85aa51 Add back cleanup fixture 2023-02-26 13:12:11 -05:00
algorandpa 51ce71c969 Add hacky cleanup solution for _testng data 2023-02-26 13:12:11 -05:00
algorandpa 8c568d1b2a Make config grab _testing dir in pytest env,
- Remove print statements
2023-02-26 13:12:11 -05:00
algorandpa af4fb59fe8 add basic func to load paper_trades file 2023-02-26 13:12:11 -05:00
Tyler Goodlet c088963cf2 Always touch config file dir if dne 2023-01-10 11:09:19 -05:00
Tyler Goodlet 16b2937d23 Passthrough toml lib kwargs 2022-06-28 10:07:56 -04:00
Tyler Goodlet 5d774bef90 Move `open_trade_ledger()` to pp mod, add `get_pps()` 2022-06-28 10:07:56 -04:00
Tyler Goodlet 2a641ab8b4 Call it `pps.toml`, allows toml passthrough kwargs 2022-06-28 10:07:56 -04:00
Tyler Goodlet eb2bad5138 Make our `Symbol` a `msgspec.Struct` 2022-06-28 10:07:56 -04:00
Tyler Goodlet 450009ff9c Add `open_trade_ledger()` for writing `<confdir>/ledgers/trades_<broker>_<acct>.toml` files 2022-06-28 10:07:56 -04:00
Tyler Goodlet 08c83afa90 Rejig config helpers for arbitrary named files 2022-06-05 22:13:36 -04:00
Tyler Goodlet 9203ebe044 Drop import, it's got madness with and SIGINT? 2022-05-09 11:15:13 -04:00
Tyler Goodlet 1cdb94374c Extract non-sudo user for config dir path 2022-05-09 11:15:13 -04:00
wattygetlood c0082e15bc Fix default `brokers.toml` copying since module move 2022-02-10 10:26:52 -05:00
Tyler Goodlet 71afce69d0 Append paper account last when loading 2021-09-10 11:35:30 -04:00
Tyler Goodlet 87bca9aae1 Tweak accounts schema to be per-provider 2021-09-09 10:46:39 -04:00
Tyler Goodlet 0d2cddec9a Return accounts in `bidict` 2021-09-08 14:01:54 -04:00
Tyler Goodlet 15025d6047 Move config module to top level 2021-09-06 21:26:28 -04:00