Commit Graph
10738 Commits
Author SHA1 Message Date
John Colvin da5331d8ca Stop tracking .vscode files 2021-09-15 23:53:57 -04:00
John Colvin 939f44b48c build: Refine build scripts so they work out of the box
* Automatically create python virtual envs
* Automatically actvate the vs dev prompt

Note: the python39 virtual env will remain active in the calling shell.
This behavior may be changed down the road.
2021-09-15 23:53:57 -04:00
John Colvin 5939df9345 Define naming conventions in editorconfig 2021-09-15 23:53:57 -04:00
John Colvin c366b9f4c8 style: Fix name violations, etc. on LadderGridHost 2021-09-15 23:53:52 -04:00
John Colvin 835e0f50ca Run dotnet format on spark proj 2021-09-06 19:35:31 -04:00
John Colvin ff4f338898 Add dotnet format tool 2021-09-06 19:35:30 -04:00
John Colvin 113871a150 Rename requirements.txt -> requirements27.txt
A requirements39.txt file was created (for a python 3.9 venv) after
requirements.txt, so the version specifier now seems appropriate.
2021-09-06 19:35:30 -04:00
John Colvin c31b5cf2b4 Run omnisharp formatter on spark project 2021-09-06 19:35:24 -04:00
John Colvin 7d75a6c3a9 Make ladder panel prices hyperlinks to jump to price 2021-09-06 18:34:28 -04:00
John Colvin 3995351b54 Fix bug where session range hidden 2021-09-06 18:34:28 -04:00
John Colvin 795942d8a9 Add style.yapf (python formatting config) 2021-09-06 18:34:28 -04:00
John Colvin f4be975fec Add omnisharp.json (c# formatting config) 2021-09-06 18:34:28 -04:00
John Colvin b7a0cc5c24 Add .venv dirs to .gitignore 2021-09-06 18:34:28 -04:00
John Colvin 8a666ae397 Add requirements39.txt for python 3.9 env 2021-09-06 18:34:28 -04:00
John Colvin 2cc8e519d8 Add cached branch build dirs to gitignore 2021-09-06 18:34:28 -04:00
John Colvin 48cd21aa46 build: Add option to cache branch builds 2021-09-06 18:34:27 -04:00
John Colvin 531fbb63be build: Add buildspark.py (bc bat is a horrible language) 2021-09-06 18:27:32 -04:00
John Colvin 6f3945cced Implement IObservable in SingleValuePump for convenience 2021-09-06 18:27:32 -04:00
John Colvin 9dc3c32769 Add bit_span param to auto_phase (hash fn)
Brought over from DJ_ICE bc it seems like a useful param for custom
hash impls (though there isn't an immediate need for it).
2021-09-06 18:27:32 -04:00
John Colvin 3f2f19f73c fix: Load FairValueLine price type in settings dialog 2021-09-06 18:27:32 -04:00
John Colvin 9a013d783e Add fair value lines for DJ 2021-09-06 18:27:32 -04:00
John Colvin 6ea217b674 fix: ContractPicker syncs selected sec/md w/ selected key 2021-09-06 18:27:32 -04:00
John Colvin 0356221066 ui (DJ): Avoid darkening price text in session range in ladder
Put the session range visual beneath the column backgrounds
(on the z axis), and make the background slightly translucent
while leaving the font color fully opaque.  This effectively
darkens the former without changing the latter.
2021-09-06 18:27:32 -04:00
John Colvin 50a0ed3823 Set alpha bits to 'FF' in historic ladder settings colors 2021-09-06 18:27:32 -04:00
John Colvin 1686d41c0c ui (dj): Reduce opacity of session range layer in ladder 2021-09-06 18:27:32 -04:00
John Colvin 65f2efa9a0 ui (dj): Make ladder look more like tt
These changes can be configured via LadderKnobs (defined in UI.proto)
2021-09-06 18:27:32 -04:00
John Colvin 84e9cf5261 fix: Correct visibility binding in ladder session high/low
The other price points visibility bindings were refactored
in a similar manner, for consistency's sake.
2021-09-06 18:27:32 -04:00
John Colvin dd256409e9 feat (DJ): Right align bid, price, and ask column text in ladder
This is hardcoded (not configurable via settings).
2021-09-06 18:27:32 -04:00
John Colvin 1e68c047ea feat (DJ): Give bid/ask cells with markets a lighter background in ladder
There is a small chance this will impact performance when
a large number of ladders (50+) are open.  Therefore, this
behavior can be toggled on/off in config, via
LadderKnobs.lighten_market_background.
2021-09-06 18:27:31 -04:00
John Colvin 56340fcc60 refactor: Consolidate tick tests after tricky merge
The branches that were merged, DJ_ICE and
DJ_ICE_ladder_price_aggregation, both added new
tick tests.  The former put them in a new file,
"TickTests.cs," while the latter added them
to "SecurityTests.cs."  This commit places all
tick tests in "TickTests.cs."
2021-09-06 18:27:31 -04:00
John Colvin af639286e1 Add tooltips to ladder left-panel price points 2021-09-06 18:27:31 -04:00
John Colvin bf32b6262d Tailor default ladder price point settings for DJ 2021-09-06 18:27:31 -04:00
John Colvin f2dd283751 feat (DJ): Display settings for ladder left-panel price points
* Add background and font settings for all price points

* Indicate 'day change' sign with modal settings (positive,
  zero, and negative) for background and font color

* Hide 'day change' leading zeros in tick part

* Don't show 'day change' zero integer part (e.g.,
  '25' instead of '0.25')
2021-09-06 18:27:31 -04:00
John Colvin c27cd8ca54 Make a few classes/structs public in spark_core
They are referenced in spark proj, so prob should have always been
public.
2021-09-06 18:27:31 -04:00
John Colvin 75c86f7b69 config toggle to show/hide ladder scrollbar for dj (defaults to hide) 2021-09-06 18:27:31 -04:00
John Colvin 2e1d65fa33 frozen price lines in ladder (for dj) 2021-09-06 18:27:31 -04:00
John Colvin 5cdd2629bf Copy a few ext methods from DJ_ICE 2021-09-06 18:27:31 -04:00
John Colvin 026bf6fb07 fix ColumnBase.SortDirection binding to DIYGridColumnModel 2021-09-06 18:27:31 -04:00
John Colvin 9054049ebf SelectionModel should only select the pending selection once (was reselecting it every time the items changed) 2021-09-06 18:27:31 -04:00
John Colvin d7a044c894 remove unused 'actual_width' prop from DIYGridColumnModel 2021-09-06 18:27:31 -04:00
John Colvin 2da8895f3e synchronize column model's GridColumnSettings with the column view 2021-09-06 18:27:31 -04:00
John Colvin 1e1a5897bc TextCell available_size is updated in ArrangeOverride 2021-09-06 18:27:31 -04:00
John Colvin d3a635b156 parameterize SecurityStore.join (don't mess with core logic/impl) 2021-09-06 18:27:31 -04:00
John Colvin f08c8a51ad made new SelectorVM (todo: replace refs to old one) 2021-09-06 18:27:31 -04:00
John Colvin 2f08e92a5e add SimpleGridSettingsManagerVM (uses DIYGridColumnModels instead of the view type ColumnBase) 2021-09-06 18:27:30 -04:00
John Colvin 336b009f24 add DIYGridColumnModel, so the DIYGrid column paradigm is cleanear mvvm 2021-09-06 18:27:30 -04:00
John Colvin e027454a36 add get/load_state methods to non-generic IDataGridColumnFilter 2021-09-06 18:27:30 -04:00
John Colvin af968c2c58 add PropertyEqualityComparerAttribute (supports simple automatic equality impl) 2021-09-06 18:27:30 -04:00
John Colvin 25a954b13c unify SecurityCriteria initialization with securities (use pretty_name if single sec) 2021-09-06 18:27:30 -04:00
John Colvin a45d8761e5 remove with_reguard_to_price param from tick 'format' extension 2021-09-06 18:27:30 -04:00