Commit Graph

1279 Commits (ca2729d2c069ffdafb99e9e126ba7fe20a9e389a)

Author SHA1 Message Date
Tyler Goodlet ca2729d2c0 Pass position msg to tracker, append fill msgs 2021-07-27 07:19:01 -04:00
Tyler Goodlet 174b9ce0cf Fixup commented view locate call 2021-07-27 07:19:01 -04:00
Tyler Goodlet 86e71a232f Only hide position (extra) info on order mode exit 2021-07-27 07:19:01 -04:00
Tyler Goodlet c98b60f7aa Fix oustanding label bugs, make `.update()` accept a position msg 2021-07-27 07:19:01 -04:00
Tyler Goodlet 480e5634c4 Stop pulling lot size precision from symbol for now in the UI 2021-07-27 07:19:01 -04:00
Tyler Goodlet 271bf67e78 Drop position-line factory from lines module, add endpoint getter 2021-07-27 07:19:01 -04:00
Tyler Goodlet 23b77fffc6 Make our default label opaque (since it's normally just text) 2021-07-27 07:19:01 -04:00
Tyler Goodlet f9f4fdca7e Increase cursor debounce delay slightly? 2021-07-27 07:19:01 -04:00
Tyler Goodlet c6a02d1bbf Switch mode to touch `.pp` 2021-07-27 07:19:01 -04:00
Tyler Goodlet 5bd764e0e9 Add `.view` property, throttle to 50Hz by default 2021-07-27 07:19:01 -04:00
Tyler Goodlet 8df399b8c1 Add a left-side-of-marker orientation 2021-07-27 07:19:01 -04:00
Tyler Goodlet d323b0c34b Move position tracking to new module
It was becoming too much with all the labels and markers and lines..
Might as well package it all together instead of cramming it in the
order mode loop, chief.

The techincal summary,
- move `_lines.position_line()` -> `PositionInfo.position_line()`.
- slap a `.pp` on the order mode instance which *is* a `PositionInfo`
- drop the position info info label for now (let's see what users want
  eventually but for now let's keep it super minimal).
- add a `LevelMarker` type to replace the old `LevelLine` internal
  marker system (includes ability to change the style and level on the
  fly).
- change `_annotate.mk_marker()` -> `mk_maker_path()` and expect caller
  to wrap in a `QGraphicsPathItem` if needed.
2021-07-27 07:19:01 -04:00
Tyler Goodlet 08fe6fc4f3 Use `QGraphicsPathItem` for marker, add line hide method 2021-07-27 07:19:01 -04:00
Tyler Goodlet 6485e64d41 Update entry count on position msgs, draft a composite position info type 2021-07-27 07:19:01 -04:00
Tyler Goodlet 1a870364c5 Add label location description param for graphics path anchor 2021-07-27 07:19:01 -04:00
Tyler Goodlet 34a773821e Drop the open ctx mng; add wip pp label 2021-07-27 07:19:01 -04:00
Tyler Goodlet 2d42da6f1a Move marker label anchor to anchors mod 2021-07-27 07:19:01 -04:00
Tyler Goodlet 0ddeded03d Move all anchor funcs to new mod 2021-07-27 07:19:01 -04:00
Tyler Goodlet ee5d5b0cef Move marker level-line-positioning anchor to new module 2021-07-27 07:19:01 -04:00
Tyler Goodlet d25be4c970 Use label anchor 2021-07-27 07:19:01 -04:00
Tyler Goodlet 422b81f0eb Remove `LevelLine.add_label()`, add dynamic pp marker label 2021-07-27 07:18:59 -04:00
Tyler Goodlet 2fd7ea812a Add user defined anchor support to label; reorg mod 2021-07-27 07:17:37 -04:00
Tyler Goodlet 2d787901f9 Add a client side order dialog type for tracking flows in the UI 2021-07-27 07:17:37 -04:00
Tyler Goodlet 5a271f9a5e Only re-calc avg pp price on pp size increases 2021-07-27 07:17:37 -04:00
Tyler Goodlet 94275c9be8 Drop `_graphics` subpkg; flat is better then nested 2021-07-27 07:17:37 -04:00
Tyler Goodlet 581134f39c Add per session paper position tracking
Generate and maintain position messages in the paper engine for each
`pikerd` session. We no longer tear down the engine on each client
disconnect. Ensure -ve size on sells to make the math work.
2021-07-27 07:17:37 -04:00
Tyler Goodlet 5a303ede1e Add more futes, add in order status comments 2021-07-27 07:17:35 -04:00
Tyler Goodlet ee25b57895 Make subplot proportion slightly larger 2021-07-27 07:16:50 -04:00
Tyler Goodlet bc3bcd6a07 WIP position market offscreen nav 2021-07-27 07:16:49 -04:00
Tyler Goodlet 55d67cc5c6 Fix TWS triggered trades msg packing 2021-07-27 07:13:11 -04:00
Tyler Goodlet 155d7b2a73 Add more futes, add in order status comments 2021-07-27 07:13:06 -04:00
Tyler Goodlet a10d20c041 Add ib config section support 2021-07-27 07:09:01 -04:00
goodboy 96b0102f04
Merge pull request #208 from hengestone/master
Fix a few QtGui -> QtWidget issues
2021-07-23 11:17:58 -04:00
goodboy 108f0da181
Merge pull request #210 from pikers/readme_bump_zone
Readme bump to include latest cli symbol syntax
2021-07-23 10:40:48 -04:00
Conrad Steenberg afafe56ec0 Remove List typing 2021-07-21 18:30:50 -07:00
Conrad Steenberg c830183073 More fixes, some reversions 2021-07-21 18:26:24 -07:00
Conrad Steenberg 3912b22b41 Fix a few QtGui -> QtWidget issues 2021-07-21 18:26:24 -07:00
Tyler Goodlet 1ef0725e74 Readme bump to include latest cli symbol syntax and add binance to provider list 2021-07-21 20:37:40 -04:00
goodboy 161089de87
Merge pull request #209 from pikers/ci_on_forks
Run CI on cross-fork PRs?
2021-07-21 20:24:01 -04:00
Tyler Goodlet cea8272a11 Run CI on cross-fork PRs? 2021-07-21 20:19:28 -04:00
goodboy 663373cb04
Merge pull request #207 from hengestone/master
Fix PyQt5 error
2021-07-21 14:16:29 -04:00
Conrad Steenberg 9d8d8fd1a2 Fix PyQt5 error 2021-07-21 10:53:40 -07:00
goodboy 8a6142632d
Merge pull request #200 from pikers/asyncify_input_modes
Asyncify input modes
2021-07-11 12:57:09 -04:00
Tyler Goodlet 83ad071cb4 Load provider search engines in tasks instead of exit stack 2021-07-11 11:13:35 -04:00
Tyler Goodlet 90588018a6 Label doc tweak 2021-07-11 11:13:35 -04:00
Tyler Goodlet 26c333ff22 Only close event send side (facepalm) 2021-07-08 10:55:47 -04:00
Tyler Goodlet 48053588da Don't cancel handler nursery, let errors bubble 2021-07-08 10:55:47 -04:00
Tyler Goodlet 830ef90721 Enable contents labels on q for "query" 2021-07-08 10:55:47 -04:00
Tyler Goodlet 8b966cd7e4 Port all to use new cursor and ohlc refs 2021-07-08 10:55:47 -04:00
Tyler Goodlet b6eeed1ae0 Move contents labels management to cursor mod
Add a new type/api to manage "contents labels" (labels that sit in
a view and display info about viewed data) since it's mostly used by
the linked charts cursor. Make `LinkedSplits.cursor` the new and only
instance var for the cursor such that charts can look it up from that
common class. Drop the `ChartPlotWidget._ohlc` array, just add
a `'ohlc'` entry to `._arrays`.
2021-07-08 10:55:47 -04:00