Tyler Goodlet
53dedbd645
Move "desynced" logic into a predicate
2021-11-01 13:28:57 -04:00
Tyler Goodlet
3dd82c8d31
Fix the drunk fix
...
This should finally be correct fsp src-to-dst array syncing now..
There's a few edge cases but mostly we need to be sure we sync both
back-filled history diffs and avoid current step lag/leads. Use
a polling routine and the more stringent task re-spawn system to get
this right.
2021-11-01 13:28:57 -04:00
Tyler Goodlet
086aaf1d16
Sync history recalcs to diff checks via a "task tracker"
2021-11-01 13:28:57 -04:00
Tyler Goodlet
f68671b614
Revert to old shm "last" meaning last row
2021-11-01 13:28:57 -04:00
Tyler Goodlet
1981b113b7
Drunkfix: finally solve the fsp alignment race?
2021-11-01 13:28:57 -04:00
Tyler Goodlet
6f83e358fe
Add zero on increment support
2021-11-01 13:28:57 -04:00
Tyler Goodlet
5b1be8a8da
Do fsp sync-to-source in sample step task
2021-11-01 13:28:57 -04:00
Tyler Goodlet
2b9fb952a9
Fix shm index update race
...
There was a lingering issue where the fsp daemon would sync its shm
array with the source data and we'd set the start/end indices to the
same value. Under some races a reader would then read an empty `.array`
which it wasn't expecting. This fixes that as well as tidies up the
`ShmArray.push()` logic and adds a temporary check in `.array` for zero
length if the array hasn't been written yet.
We can now start removing read array length checks in consumer code
and hopefully no more races will show up.
2021-11-01 13:28:57 -04:00
Tyler Goodlet
2cd594ed35
Add profiling to fsp engine
...
Litter the engine code with `pyqtgraph` profiling to see if we can
improve startup times - likely it'll mean pre-allocating a small fsp
daemon cluster at startup.
2021-11-01 13:28:57 -04:00
Tyler Goodlet
d4b00d74f8
Move top level fsp pkg code into an `_engine` module
2021-11-01 13:28:57 -04:00
Tyler Goodlet
33d1f56440
Port fsp daemon to tractor's context api
2021-11-01 13:28:57 -04:00
Tyler Goodlet
31f4dbef7d
More explicit error on shm push overruns
2021-11-01 13:28:57 -04:00
Tyler Goodlet
92d7ffd332
WIP fsp output throttling - not working yet
2021-11-01 13:28:57 -04:00
goodboy
0a54ed7dad
Merge pull request #235 from pikers/ib_client_scan
...
Ib client scanning
2021-11-01 13:28:05 -04:00
Tyler Goodlet
f5d73edd1b
Switch imports to new `tractor.trionics` subpkg
2021-11-01 13:22:23 -04:00
Tyler Goodlet
297b88e88c
Disable slipped in vlm display, will land with #231
2021-11-01 13:16:35 -04:00
Tyler Goodlet
24596022f9
Wait for a last price tick before delivering quote
2021-10-29 09:31:06 -04:00
Tyler Goodlet
af0503956a
Use `tractor.to_asyncio.open_channel_from()` in ib backend
2021-10-29 09:26:42 -04:00
Tyler Goodlet
980a6dde05
Add ib gateway support, loop through names
2021-10-29 09:25:44 -04:00
Tyler Goodlet
a114329ad9
Pass window id to click subcmd
2021-10-29 09:25:44 -04:00
Tyler Goodlet
b180fa2083
Use bottom right of window for click
2021-10-29 09:25:44 -04:00
Tyler Goodlet
7d2a970e32
Add working i3 + xdotool script for ib data reset
...
Start of a general solution to #128
2021-10-29 09:25:44 -04:00
Tyler Goodlet
1416d4e6ac
Add actor wide client ignore set, increase history retreival to 24 requests
2021-10-29 09:25:41 -04:00
Tyler Goodlet
eca9b14cd6
Add (list of) `hosts` support in config and better scan error msg
2021-10-29 09:20:52 -04:00
goodboy
91c005b3c1
Merge pull request #230 from pikers/super_basic_brokerd_status
...
Super basic brokerd status
2021-10-28 13:04:22 -04:00
goodboy
adb5a55e3f
Merge pull request #233 from pikers/tractor_branch_pin
...
Pin to specific branch made for us in `tractor`
2021-10-23 14:04:31 -04:00
Tyler Goodlet
37723235ca
Pin to specific branch made for us
2021-10-23 12:25:16 -04:00
Tyler Goodlet
547f6692d6
Passthrough loglevel to fsp actor
2021-09-21 16:12:23 -04:00
Tyler Goodlet
4227b2e7a0
Increase feed status label size once more
2021-09-21 15:49:51 -04:00
Tyler Goodlet
7d00244e8b
WIP resize sidepanes to master plot
2021-09-21 15:49:09 -04:00
Tyler Goodlet
4d06502bc8
Accept humanized str input for order settings
2021-09-21 15:48:40 -04:00
Tyler Goodlet
d3d7f8a6f8
Add `puterize()`
2021-09-21 15:48:40 -04:00
Tyler Goodlet
da8bccf788
Just log error on invalid order mode settings
2021-09-21 15:48:40 -04:00
Tyler Goodlet
3e25be6321
Build out feed status label, add to top of sidepane
2021-09-21 15:48:40 -04:00
Tyler Goodlet
bc42d625fc
Make labels expand by default
2021-09-21 15:48:40 -04:00
Tyler Goodlet
fd8be33f10
Add portal getter, store throttle rate
2021-09-21 15:48:40 -04:00
goodboy
bb5916d6a9
Merge pull request #227 from pikers/chart_mod_breakup
...
Breakup the chart module
2021-09-18 11:59:25 -04:00
goodboy
3aadd49e07
Merge pull request #226 from pikers/account_select_icons
...
Account select icons
2021-09-15 11:36:16 -04:00
Tyler Goodlet
46bbfc8ef8
Breakup the chart module
...
Split up the rather large `.ui._chart` module into its constituents:
- a `.ui._app` for the highlevel widget composition, qtractor entry
point and startup logic
- `.ui._display` for all the real-time graphics update tasks which
consume the `.ui._chart` widget apis
2021-09-15 07:52:01 -04:00
Tyler Goodlet
aa91055a16
Fix logic to display pnl in status label immediately
2021-09-14 18:31:49 -04:00
Tyler Goodlet
67de83afa9
Create all trackers in one pass of the accounts
2021-09-14 14:26:15 -04:00
Tyler Goodlet
f4740da6a2
Drop `.accounts` field from allocator
2021-09-14 13:10:39 -04:00
Tyler Goodlet
4afafce297
Update icons from pps at order mode startup
2021-09-14 12:26:26 -04:00
Tyler Goodlet
9c60aa1928
Add account icon updater method to sidepane
2021-09-14 12:26:06 -04:00
Tyler Goodlet
9e41dfb735
Add an icon setter api to `Selection`
2021-09-14 12:25:30 -04:00
Tyler Goodlet
be5a8e66d8
Only show accounts reported from clearing sys
2021-09-14 10:37:30 -04:00
Tyler Goodlet
9e15401ddc
Add an accounts list setter
2021-09-14 10:36:44 -04:00
Tyler Goodlet
b04645aa47
Expect `accounts: set[str]` startup msg through clearing system
2021-09-14 10:36:13 -04:00
Tyler Goodlet
75e1bf3f6e
Factor combobox logic into a new `Selection` subtype
2021-09-14 10:34:36 -04:00
Tyler Goodlet
6a31c4e160
Fix missing tracker to ui update call
2021-09-13 19:08:30 -04:00