John Colvin
03116a2973
refactor: Only support 1 tag type in IPubSubServerTagHandler
2025-08-24 13:46:48 -04:00
John Colvin
d0d6d587d7
refactor: Decouple PubTableBroker from IPublisherCore impl
...
Reference interface rather than the PublisherCore impl.
2025-08-24 13:46:48 -04:00
John Colvin
765e45d95a
fix: Dispose market data sub in various md streams
2025-08-24 13:46:48 -04:00
John Colvin
cd833ceb36
cleanup: Remove unused pubsub tag handler code
...
* Removed 'IPubSubServerTagHandler.register'
- All implementations of this function were empty
* Removed 'IPubSubServerTagHandler.supportedTagTypes'
- This property wasn't referenced anywhere
* Remove IWorker inheritance from IPubSubServerTagHandler
- No reason these interfaces have to be tied together
2025-08-24 13:46:47 -04:00
John Colvin
a148a03175
refactor: Rename CloudStreamManager.cs -> RemoteQueryManager.cs
...
This matches the file name
2025-08-24 13:46:47 -04:00
John Colvin
338edfd732
Change pub sub schema prefix 'bluto://' -> 'bts-cloud://'
...
In config json files (not actual code change)
2025-08-24 13:46:47 -04:00
John Colvin
2a9ca60654
chore: Fix typos in log msgs
...
* Bad string interopolation syntax
2025-08-24 13:46:47 -04:00
John Colvin
07b32e4da4
Add spark service modules designed for Dependency Injection
2025-08-24 13:46:47 -04:00
John Colvin
645a447248
fix build (warn): Only use Registry on windows
2025-08-24 13:46:47 -04:00
John Colvin
4580a1af21
cleanup: Fix numerous build warnings in DataStreamSuite
...
Nearly all warnings were due to nullability issues, since the concept of
nullable reference types did not exist when the DataStream code was
originally written.
* PubSubClientMessage
- Normalize indentation/whitespace
- Fix some typos
- Address nullability issues to fix build warnings
- Modernize code
* Compression related files
- ZipEntry
- ZipFile
- ZipInputStream
- TarHeader
* RemoteMessage
- make 'message' nullable to resolve warnings elsewhere (in calling code)
* PubSubSingleTagStateEvent.cs
* PubSubMessageReactor
* PubSubState
* SystemHeartbeatPublisher
* SystemStatsPublisher
* SingleTagData
* ManagedTCPMessageHub
* PubsubDeserializationController
* PublisherCore
* InflaterHuffmanTree
* AsyncTCPConnection_APM
* ThreadSafeQueue
* ManagedSubscriber
* SubscriberCore
* PubSubServerManagedTCPConnection
* AsyncTCPConnection_APM
* SuperMapStream
* MapStream
* TradeBarsStream
2025-08-24 13:46:47 -04:00
John Colvin
85a68a14c6
cleanup: Disable nullability warnings
...
* BZip2InputStream
* TarInputStream
* Inflater
* InflaterDynHeader
* BZip2OutputStream
* DeflaterHuffman
* ParallelJoinTest
2025-08-24 13:46:47 -04:00
John Colvin
3476bbca02
cleanup: Modernize PubSubRoute code, json parsing
2025-08-24 13:46:47 -04:00
John Colvin
fdb1811f03
cleanup: Remove unused DateTime grammar from exp parser
2025-08-24 13:46:47 -04:00
John Colvin
7db9f9368b
chore: Add json facilities for DataStream websocket api
2025-08-24 13:46:47 -04:00
John Colvin
983eb24584
refactor: Add handy WebsocketExtensions
...
* IsSocketStateOpen
* IsClosedProperly
2025-08-24 13:46:47 -04:00
John Colvin
312aa9c669
chore: Add JsonRpc types for websocket paradigm
2025-08-24 13:46:46 -04:00
John Colvin
a11b0959bb
cleanup: Remove empty file (clearly added by accident)
2025-08-24 13:46:46 -04:00
John Colvin
e0e0c408a5
Add generic ViewStream, BlueRow types/interfaces
2025-08-24 13:46:46 -04:00
John Colvin
db2bd425be
Add BlueRowColumnMask to hide columns w/ minimal overhead
...
Less overhead than ProjectStream
2025-08-24 13:46:46 -04:00
John Colvin
2af3c6e98d
fix: Remove query from literal error stream
...
The parser can't handle colons in the expression (it throws/crashes)
2025-08-24 13:46:46 -04:00
John Colvin
74c1ef8dab
fix: Remove erroneous "DSL: " prefix in ai prompt stream
...
This causes parse errors since we extended the dsl syntax to support
named params in the form of "name: arg".
2025-08-24 13:46:46 -04:00
John Colvin
e3bcfa792c
feat: Extend dsl to support explicit param names
...
When using explicit names, the argument order doesn't matter, and args
with defaults are automatically populated if omitted.
2025-08-24 13:46:46 -04:00
John Colvin
8f55916fe0
Add async SQLiteEnumerator to read sqlite tables as IBlueRowCollection
2025-08-24 13:46:46 -04:00
John Colvin
9fbf509b30
Add gen purpose blue row/table utils for data streams
...
* Add BlueRowReflection<T> so ViewStream implementations can use
strong row types without needing to implement IBlueRow
* Add default implementations for IDictionary members in IBlueRow to make
implementing IBlueRow less tedious
2025-08-24 13:46:46 -04:00
John Colvin
2004b76ebc
ui: Add long/short avg cost lines to ladder
2025-08-24 13:46:46 -04:00
John Colvin
614e4de884
ui: Add exec fee columns to fills grid
2025-08-24 13:46:46 -04:00
John Colvin
0ba34da70e
chore: Add exec fee to sec metadata config
2025-08-24 13:46:45 -04:00
John Colvin
826c1164be
chore: Add fill_aggressor prop to ITradeLogRow
2025-08-24 13:46:45 -04:00
John Colvin
7b41dbb19a
diag: Reduce "Waiting for request" log level to diag in py bridge
...
It's too noisy for Info
2025-08-24 17:45:21 +00:00
Adeel Khan
e6a3116327
FIX: Minor recorder fixes.
2025-08-21 22:12:03 +00:00
Adeel Khan
86ce16790a
FIX: Changed log level.
2025-08-21 22:12:03 +00:00
Adeel Khan
897cf10be6
ADD: Support for bbo in MDRecorder & Config support.
2025-08-21 22:12:03 +00:00
Adeel Khan
ca27903f63
ADD: Support for Spreads on Bybit. Gateio fixes.
2025-08-21 22:12:03 +00:00
Adeel Khan
1b5f1bfb27
UPDATE: Added back Spots to Bybit MD.
2025-08-21 22:12:03 +00:00
John Colvin
217db51cbc
fix: Propagate error message to ExecutionReport in bybit gw
...
Specifically, the 'rejectReason' field in order update json.
2025-08-21 13:52:57 +00:00
John Colvin
c08a893ecf
change: Hardcode PostOnly flag for Limit/GTC orders in bybit gw
...
'PostOnly' is a TimeInForce flag that we don't have in our system. It makes it
so Limit orders that would be filled on entry are rejected. Ali's SprayAndSkew
algo needs this to avoid taker fees.
2025-08-21 13:31:37 +00:00
John Colvin
a022f08b49
fix: Don't log error when positions are empty in bybit gw
...
This particular error log was intended for failed position requests. Since an
empty list evaluates to false in python, we were incorrectly interpreting an
empty result as a failed request.
2025-08-20 15:08:25 +00:00
John Colvin
5af98658d8
fix: Fix typos in bybit_execution_gateway.py
...
* Change 'new_req' -> 'req'
* Change 'self.exe_report_callback' -> 'self.bridge.on_execution_report'
...this is what you get when you take shortcuts and copy/paste code.
2025-08-18 22:14:55 +00:00
John Colvin
933511f430
fix: Reset last filled qty to 0 on updates with no fills in bybit gw
...
For example, on status change updates.
2025-08-18 18:54:38 +00:00
John Colvin
63291d7374
fix: Buffer req on ws closed exception just like normal disconnect in bybit gw
2025-08-18 18:31:58 +00:00
John Colvin
30276066f8
cleanup: Remove redundant code
2025-08-18 18:24:05 +00:00
John Colvin
809a66323d
fix: Guarantee unique tx id for bybit exe reports
...
Use a version counter instead of 'time.time_ns' (the latter probably would have
been fine in practice, but the former is better).
2025-08-18 15:54:22 +00:00
John Colvin
5c4ee1a262
fix: Insulate algos from bybit disconnect/reconnect
...
* Buffer incoming requests while reconnecting
* Sync orders upon reconnect and fire execution reports to account for diff
2025-08-18 15:54:22 +00:00
John Colvin
504f441d2e
fix: Count fills correctly in bybit exe gw plugin
...
* Round fill price and qty to 7 digits in bybit gw plugin
* Remove erroneous line of code that reset filled_quantity to 0 on each
update (it was causing partial fills to be overcounted)
2025-08-18 15:51:11 +00:00
John Colvin
fd51025b00
diag: Increase waiting for admin data log throttle to 5s
...
This log is particularly noisy if the configured account isn't in the system. It
logs continuously until the account is added via the Risk webapp.
2025-08-18 15:51:11 +00:00
John Colvin
f4afd92db2
diag: Get sec name from py_sec instead of var that was std::moved
2025-08-18 15:51:11 +00:00
John Colvin
b1fe5b52f6
diag: Change bybit_dev exe gw console level to INFO
...
I found myself constantly changing it from WARN to INFO while developing/testing.
This is a 'dev' config profile, so it should be tuned for development.
2025-08-18 15:45:43 +00:00
John Colvin
164ca306f5
hotfix: Reject new orders when bybit gw not in READY state
2025-08-15 13:42:33 +00:00
John Colvin
c0f4090d70
fix: Add error_msg to PyExecutionReport json fmt
2025-08-14 03:54:33 +00:00
John Colvin
63c94e09e7
diag: Add bybit order ticket webapp for testing purposes
2025-08-13 21:39:21 +00:00