John Colvin
bd8c97244a
refactor: Return row id in IStore::retrieve_one
...
This is a prerequisite to synchronizing security ids stored via IDGenerator
(the "new" way to store ids, added when we implemented Deribit), and
SecurityDB (the original way from spark days). The problem was that these
2 implementations were using separate databases. We need to unify the
interfaces between these storage services to avoid breaking existing code.
2024-11-20 22:17:08 +00:00
taha afzal
c22a1382a1
Fractional qtys now work on the server (need some client side work)
2022-06-22 15:38:37 -05:00
taha afzal
b575612b07
Fixing Busting of fills on ResetPositions
2022-05-26 18:39:19 -04:00
taha afzal
904ef92ece
Added reset_position to PositionService
2022-05-09 14:40:44 -04:00
Pedro Pinto
de063e51f0
Another clang-format run, changed how parameters are binned
2020-12-30 17:30:10 -05:00
Pedro Pinto
8f21a77150
Ran clang-format across all files
2020-12-30 17:11:18 -05:00
Taha Afzal
0ee86f2dd4
CPP override fix
2020-06-19 11:58:58 -04:00
Taha Afzal
b61e18d10e
CPP logic
2020-06-19 00:44:13 -04:00
Taha Afzal
c2b9ac57dc
Fixing build
2020-06-05 11:55:54 -04:00
Taha Afzal
46d35131d7
Overridable cpps
2020-06-05 10:01:18 -04:00
Taha Afzal
2b53a051d3
Presod local fills are deleted at startup, Modified the SOD test to test for this
2019-09-01 13:00:15 -04:00
Taha Afzal
6b311883a5
Fixed the bug which was preventing the GMI imported rows to be to shown in the PNL UI
2019-08-16 22:13:36 -04:00
Taha Afzal
a24e814182
Added more logs
2019-08-16 19:33:54 -04:00
Taha Afzal
c42bc45f24
PositionServiceServer uses the manual fills state in PositionMap
2019-08-05 15:55:01 -04:00
Taha Afzal
37a8ae6677
zero_out_pos_unit was not zering out backwards compat doubles
2019-08-05 14:00:40 -04:00
Taha Afzal
76f582613b
Comments mainly
2019-08-05 10:47:58 -04:00
Taha Afzal
edba0e1cd7
Positions entries published by the PositionService are never removed, if a baseposition is absent, the enrties are 0'd out
2019-08-04 19:27:02 -04:00
Taha Afzal
ac1c5566ac
For backwards compat, PositionUnit's account is populated
2019-08-02 18:48:46 -04:00
Taha Afzal
4fc59c2ca8
Base Position incorporation but untested
2019-08-02 00:10:54 -04:00
Taha Afzal
2bfc3148d1
merging
2019-08-01 13:50:54 -04:00
Taha Afzal
72734bb15f
Moving PositionServiceServer data into PositionMap (the Service Server was getting too long and confusing)
2019-08-01 13:22:38 -04:00
Pedro Pinto
0afededebf
Added bones of base position service.
2019-07-31 14:12:36 -04:00
Pedro Pinto
5cb1220d05
Added stubs for base position service.
2019-07-30 14:41:39 -04:00
Taha Afzal
21a48ba0ad
moving PositionUtilities into lib, removing 2 unused functions in Limiter
2019-07-29 16:59:12 -04:00
Taha Afzal
e000d34766
Converting PositionUtilities into a class (vs functions) and big fixes
2019-06-30 09:46:04 -04:00
Taha Afzal
87a8665273
Added support for Admin fills to PositionService
2019-06-28 19:18:58 -04:00
Taha Afzal
8b4c64e8f4
PositionServiceServer not indixes the state based on account_id istead of names
2019-06-26 19:34:46 -04:00
Taha Afzal
29d14404e6
PositionService has access to AdminService to resolve accounts now
2019-06-24 17:15:04 -04:00
Taha Afzal
7c6a26ebd9
All hooked up, on updates, loss limit is checked only on size increases
2019-06-23 19:25:06 -04:00
Taha Afzal
b2766c283d
Setting account id in PositionUnit
2019-06-22 22:05:32 -04:00
Taha Afzal
a1ead3d1c1
cpp routed correctly now
2019-06-22 14:24:15 -04:00
Pedro Pinto
4055a06601
Merged master
2019-06-20 15:28:27 -04:00
Pedro Pinto
e8cccdb1c0
Changed manual fills to show in day rather than SOD.
2019-06-17 10:15:52 -04:00
Taha Afzal
cddadcb278
PositionService exposes new streaming calls pnl_data and pnl_account_data to get detailed and summary pnls
2019-06-16 22:02:16 -04:00
Pedro Pinto
b07700cdc7
Fixed some issues with position service and manual fill integration.
2019-05-22 16:11:13 -04:00
Pedro Pinto
ac45e9bdb2
WIP: manual fills in pos server.
2019-05-22 13:52:04 -04:00
Jake Norbut
0057f8f080
when determining average price, position service should use the fill's last_price() and not avg_price; using avg_price from partials leads to wildly inaccurate pnl
2019-05-20 12:29:34 -05:00
John Colvin
d04f9f4e96
fix server build
2019-05-13 13:27:35 -04:00
Pedro Pinto
0ea72b017e
Storage component of manual fills code complete.
2019-05-09 12:12:02 -04:00
Pedro Pinto
2f23292836
Pos server
2019-05-09 09:12:37 -04:00
Pedro Pinto
3be2aedfe3
Work in progress for manual fills
2019-05-09 08:59:59 -04:00
Eric Harding
a101a267ed
More consistent to call old previous for Change
2019-04-09 14:58:15 -04:00
Eric Harding
06aa540110
SPARK-2248 Update api subscribe clients for this api change
2019-04-09 09:59:05 -04:00
Taha Afzal
d29ec26beb
SPARK-1672 scaffolding
2018-09-10 15:11:18 -04:00
Taha Afzal
350bc37a8d
SPARK-1578 account vs clearing account
2018-08-22 23:19:35 -04:00
Taha Afzal
4977957ec1
PositionService added
2018-08-19 09:18:20 -04:00