From 9d54e47a039bf5226cb382a7722b1f1b8d32460b Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 19 May 2020 17:00:24 -0400 Subject: [PATCH 01/23] Update CMakeDeps --- src/lib/CMakeDeps.cmake | 2 +- src/web/CMakeDeps.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/CMakeDeps.cmake b/src/lib/CMakeDeps.cmake index 2ec540726..eca216be1 100644 --- a/src/lib/CMakeDeps.cmake +++ b/src/lib/CMakeDeps.cmake @@ -1 +1 @@ -set(sources api/apicore.proto;api/apigateway.proto;api/apioptions.proto;api/core/ApiClientInterop.cpp;api/core/ApiServerInterop.cpp;api/public/ApiServer.cpp;api/public/ClientChannel.cpp;api/public/QuickbusClientChannel.cpp;api/public/ServerChannel.cpp;api/public/ServiceContext.cpp;api/service_helpers/AdminServiceUtils.cpp;api/service_helpers/AlgoServiceUtils.cpp;api/service_helpers/PositionUtilities.cpp;api/services/AdminService.proto;api/services/AlgoDefinitionService.proto;api/services/AlgoService.proto;api/services/ApiUnitTestService.proto;api/services/AuthService.proto;api/services/BasePositionService.proto;api/services/ErrorReportService.proto;api/services/HelloService.proto;api/services/MBOService.proto;api/services/MarginService.proto;api/services/MarketDataAuxiliaryService.proto;api/services/MarketDataRelay.proto;api/services/MarketDataService.proto;api/services/MoneyFileService.proto;api/services/OrderService.proto;api/services/OutOfProcessURLListener.proto;api/services/PersistenceService.proto;api/services/PositionService.proto;api/services/ShellDiagnosticService.proto;api/services/ShellLatencyService.proto;api/services/SyntheticSecurityService.proto;api/test/ApiTests.cpp;api/test/HelloServiceServer.cpp;config/ConfigCheck.cpp;config/ConfigDownloader.cpp;config/ConfigErrorCollector.cpp;config/ConfigLog.cpp;config/ConfigPropertyEvaluator.cpp;config/ConfigValueQueue.cpp;config/ConfigurationException.cpp;config/ConfigurationState.cpp;config/PreprocessInputStream.cpp;config/config.cpp;config/defaults/MarketData.conf;config/defaults/Ports.conf;config/defaults/Symbols.conf;config/defaults/cme_reference_data.conf;config/defaults/edge.conf;config/defaults/jetfix.conf;config/defaults/keycode.conf;config/defaults/logging.conf;config/defaults/orderman_cfg.conf;config/defaults/orders_fills_cleanup.conf;config/defaults/position_cfg.conf;config/defaults/span.conf;config/defaults/spreader.conf;config/defaults/testkeys.conf;config/defaults/threads.conf;config/defaults/toggles.conf;config/extensions/extensions.proto;config/invalid/invalid.proto;config/protos/ExchangeSimCfg.proto;config/protos/MarketData.proto;config/protos/Ports.proto;config/protos/Symbols.proto;config/protos/UI.proto;config/protos/cme_reference_data.proto;config/protos/jetfix.proto;config/protos/keycode.proto;config/protos/logging.proto;config/protos/mercury_cfg.proto;config/protos/orderman_cfg.proto;config/protos/orders_fills_cleanup.proto;config/protos/perflog_cfg.proto;config/protos/position_cfg.proto;config/protos/quickbus_cfg.proto;config/protos/span.proto;config/protos/spreader.proto;config/protos/subprocess.proto;config/protos/system.proto;config/protos/testkeys.proto;config/protos/threads.proto;config/protos/toggles.proto;config/tests/HTTPServer.cpp;config/tests/config_ref_tests.cpp;config/tests/config_tests.cpp;config/text_format/text_format.cpp;domain_model/Security.cpp;domain_model/Security.proto;domain_model/SecurityTests.cpp;domain_model/sod.cpp;domain_model/tests/domain_tests.cpp;expression/BooleanGrammar.cpp;expression/ExpressionEvaluator.cpp;expression/ParserExceptions.cpp;expression/Value.cpp;expression/tests/expression_parser_tests.cpp;jetfix/codec/FIXArray.cpp;jetfix/common/OutFIX.cpp;jetfix/connection/AsyncReader.cpp;jetfix/connection/IConnection.cpp;jetfix/connection/SocketConnection.cpp;jetfix/gateway/CoreGateway.cpp;jetfix/gateway/JetFIXGateway.cpp;jetfix/gateway/Session.cpp;jetfix/store/FIXFileStore.cpp;jetfix/store/session_name.cpp;jetfix/tests/async_reader_tests.cpp;jetfix/tests/decoding_tests.cpp;jetfix/tests/fix_encoding_stream_tests.cpp;jetfix/tests/fix_fragment_tests.cpp;jetfix/tests/jetfix_performance_tests.cpp;jetfix/tests/sample_fix.cpp;jetfix/tests/store_tests.cpp;logging/LoggerHub.cpp;logging/Sink.cpp;logging/logging.cpp;logging/tests/logging_tests.cpp;md/Diag/MDPeriodicDumper.cpp;md/Diag/ShmDumper.cpp;md/MBOProcessor.cpp;md/MBOServiceServer.cpp;md/MDClient.cpp;md/MDConsumer.cpp;md/MDConsumerHandle.cpp;md/MDConsumerInterop.cpp;md/MDProducer.cpp;md/MDProducerHandle.cpp;md/MemorySegmentUtils.cpp;md/PlatformLoader.cpp;md/PriceSize.cpp;md/Product.cpp;md/SecurityCache.cpp;md/SecurityDB.cpp;md/SecurityIDRecorder.cpp;md/SecurityMapper.cpp;md/SecurityOracle.cpp;md/SettlementRecorder.cpp;md/Shm/FixedSecurity.cpp;md/SyntheticSecurityService.cpp;md/cme/MDP3Utils.cpp;md/common.cpp;md/ice/ICEUtils.cpp;md/protos/co2.proto;md/relay/QueryServer.cpp;md/relay/RelayClient.cpp;md/relay/RelayRecorder.cpp;md/service/MarketDataServiceServer.cpp;md/test/Co2ManagedTestHelper.cpp;md/test/Co2TestInstrument.cpp;md/test/mbo_tests.cpp;md/test/md2_tests.cpp;md/test/md_test_utils.cpp;md/test/synthetic_book_merge_tests.cpp;md/vendor/OnixsUtils.cpp;mercury/actors/IPollableActor.cpp;mercury/broker/Broker.cpp;mercury/broker/BrokerProxy.cpp;mercury/broker/ILocalBroker.cpp;mercury/broker/IRemoteBroker.cpp;mercury/common/mercury_common.cpp;mercury/events/TimerEvent.cpp;mercury/executor/Executor.cpp;mercury/topics/Topic.cpp;metrics/metrics.cpp;metrics/system_metrics.cpp;orderman/actors/AsyncFactory.cpp;orderman/actors/FillStore.cpp;orderman/actors/GLBXExecutionGateway.cpp;orderman/actors/ICEExecutionGateway.cpp;orderman/actors/IExecutionGateway.cpp;orderman/actors/MDSupplementarySource.cpp;orderman/actors/OrderStore.cpp;orderman/actors/SODPosition.cpp;orderman/actors/SecuritySrc.cpp;orderman/actors/ServiceBridge.cpp;orderman/actors/order_manager/OrderBuilder.cpp;orderman/actors/order_manager/OrderManager.cpp;orderman/actors/order_manager/OrderServices.cpp;orderman/actors/order_manager/OrderServicesData.cpp;orderman/actors/order_manager/PositionIndex.cpp;orderman/core/IOrderServices.cpp;orderman/events/CancelRejectEvent.cpp;orderman/events/FilledPositionEvent.cpp;orderman/events/NewExecutionReportEvent.cpp;orderman/limiter/LimitStore.cpp;orderman/limiter/Limiter.cpp;orderman/limiter/ProductLimitNode.cpp;orderman/limiter/ProductLimitTree.cpp;orderman/limiter/SecurityLimitNode.cpp;orderman/limiter/SecurityLimitTree.cpp;orderman/limiter/tests/limit_tests.cpp;orderman/order_factory/DynamicOrderRegistry.cpp;orderman/order_factory/OrderFactory.cpp;orderman/order_router/OrderRouter.cpp;orderman/orderman_utils/fix_order_codec.cpp;orderman/orderman_utils/orderman_utils.cpp;orderman/orders/CompositeOrder.cpp;orderman/orders/DynamicOrder.cpp;orderman/orders/GLBXNativeOrder.cpp;orderman/orders/ICENativeOrder.cpp;orderman/orders/Order.cpp;orderman/orders/TimeBoxOrder.cpp;orderman/orders/TriggerOrder.cpp;orderman/orders/algo/AlgoWrapperOrder.cpp;orderman/orders/algo/DynamicHelpers.cpp;orderman/orders/algo/IAlgoOrder.cpp;orderman/orders/algo/IAlgoServices.cpp;orderman/orders/algo/IBeforeLaunchAlgoServices.cpp;orderman/orders/algo/PositionUpdate.cpp;orderman/orders/algo/algo_orders/CoverAlgo.cpp;orderman/orders/algo/algo_orders/DormanAlgo.cpp;orderman/orders/algo/algo_orders/IcebergAlgo.cpp;orderman/orders/algo/algo_orders/JoinAlgo.cpp;orderman/orders/algo/algo_orders/LeanAlgo.cpp;orderman/orders/algo/algo_orders/OffsetAlgo.cpp;orderman/orders/algo/algo_orders/ProRataAlgo.cpp;orderman/orders/algo/algo_orders/PyramidAlgo.cpp;orderman/orders/algo/algo_orders/RegisterDorman.cpp;orderman/orders/algo/algo_orders/ScratchAlgo.cpp;orderman/orders/algo/algo_orders/SplitterAlgo.cpp;orderman/orders/algo/algo_orders/TASAlgo.cpp;orderman/orders/algo/algo_orders/TASCounterAlgo.cpp;orderman/orders/algo/algo_orders/TopAlgo.cpp;orderman/orders/algo/algo_orders/tests/AlgoTestDriver.cpp;orderman/orders/algo/algo_orders/tests/dorman_tests.cpp;orderman/orders/algo/algo_orders/tests/splitter_tests.cpp;orderman/orders/book_algos/BookAlgo.cpp;orderman/orders/book_algos/BookOrderBase.cpp;orderman/orders/book_algos/OCOOrder.cpp;orderman/orders/book_algos/PricerOrder.cpp;orderman/orders/queue_holder/QueueHolderOrder.cpp;orderman/orders/queue_holder/state_workers/QHOEndStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOStartStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOWaitingForAckStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOWaitingForCancelAllStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOWorkingStateWorker.cpp;orderman/orders/spreader_orders/SpreaderOrder.cpp;orderman/orders/spreader_orders/spreader/LegFillState.cpp;orderman/orders/spreader_orders/spreader/LegPropertyData.cpp;orderman/orders/spreader_orders/spreader/NLegsHedgeRecompData.cpp;orderman/orders/spreader_orders/spreader/QuoteLegPriceQuantityState.cpp;orderman/orders/spreader_orders/spreader/SingleFillHedger.cpp;orderman/orders/spreader_orders/spreader/SingleLegQuoter.cpp;orderman/orders/spreader_orders/spreader/SpreaderBookkeepingData.cpp;orderman/orders/spreader_orders/spreader/SpreaderChildOrderState.cpp;orderman/orders/spreader_orders/spreader/SpreaderLegData.cpp;orderman/orders/spreader_orders/spreader/SpreaderUtils.cpp;orderman/orders/spreader_orders/spreader/external_interfacing/SpreaderOrderBuilder.cpp;orderman/orders/spreader_orders/spreader/external_interfacing/SpreaderOrderServices.cpp;orderman/orders/spreader_orders/spreader/external_interfacing/SpreaderPreActivationOrderServices.cpp;orderman/orders/spreader_orders/spreader/hedger/HedgerManager.cpp;orderman/orders/spreader_orders/spreader/hedger/UnhedgedDelta.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerEndStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerStartStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWaitingForCancelAckStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWaitingForFirstAckCancelledStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWaitingForFirstAckStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWorkingStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/QuoteDriverSet.cpp;orderman/orders/spreader_orders/spreader/quoter/QuoteDriverSetHistory.cpp;orderman/orders/spreader_orders/spreader/quoter/QuoteLegDriver.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterEndStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterStartStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForCancelAckStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForFirstAckCancelledWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForFirstAckWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForIOCWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForSizeStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWorkingStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderEndStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderStartStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderWaitingForCancelAllStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderWaitingForInitialDataStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderWorkingStateWorker.cpp;orderman/orders/spreader_orders/tests/spreader_tests.cpp;orderman/server/OrderServiceServer.cpp;orderman/tests/fat_wrapper_tests.cpp;os/os.cpp;os/tests/os_tests.cpp;persistence/IStore.cpp;persistence/PersistenceServiceServer.cpp;persistence/SqliteStore.cpp;persistence/persistence_utils.cpp;persistence/tests/PersistenceServiceTests.cpp;plugin/SparkServices.cpp;plugin/plugin.cpp;quickbus/core/LocalNode.cpp;quickbus/core/Quickbus.cpp;quickbus/core/SubscriptionID.cpp;quickbus/core/TableID.cpp;quickbus/message_model/Update.cpp;quickbus/message_model/merge_updates.cpp;quickbus/network/QBConnection.cpp;quickbus/network/QBConnectionManager.cpp;quickbus/network/endpoint_description.cpp;quickbus/network/quickbus_msgs.proto;quickbus/pubsub/TablePublisher.cpp;quickbus/pubsub/TableSubscriber.cpp;quickbus/pubsub/tests/qb_pubsub_tests.cpp;quickbus/routing/INode.cpp;quickbus/routing/NodeID.cpp;quickbus/routing/Router.cpp;quickbus/rpc/RPCClient.cpp;quickbus/rpc/RPCServer.cpp;quickbus/rpc/RPCSessionID.cpp;quickbus/rpc/rpc_utils.cpp;quickbus/rpc/tests/qb_rpc_tests.cpp;quickbus/tests/quickbus_tests.cpp;sparkproto/SparkProtos.proto;testing/catch_test_runner.cpp;tracing/PerfLog.cpp;tracing/bts_trace.cpp;utils/AuthSessionManager.cpp;utils/AuthToken.cpp;utils/Dispatcher.cpp;utils/GrowableSPSCQueue.cpp;utils/HTTPStream.cpp;utils/PBUtils.cpp;utils/Puid.cpp;utils/SecureLogon.cpp;utils/SharedMemory.cpp;utils/Sqlite_utils.cpp;utils/Uuid.cpp;utils/crypto/CipherType.cpp;utils/crypto/CryptoInit.cpp;utils/crypto/Digest.cpp;utils/crypto/KeyCodeHelper.cpp;utils/crypto/PasswordCallback.cpp;utils/crypto/PrivateKey.cpp;utils/crypto/PublicKey.cpp;utils/crypto/iostreambio.cpp;utils/datetime.cpp;utils/download.cpp;utils/file_utils.cpp;utils/init_spark_lib.cpp;utils/is_unittest_environment.cpp;utils/sftp.cpp;utils/stats.cpp;utils/tests/AuthTokenTests.cpp;utils/tests/IDGeneratorTests.cpp;utils/tests/SingleWriterConcurrentVectorTests.cpp;utils/thread_manager.cpp) \ No newline at end of file +set(sources api/apicore.proto;api/apigateway.proto;api/apioptions.proto;api/core/ApiClientInterop.cpp;api/core/ApiServerInterop.cpp;api/public/ApiServer.cpp;api/public/ClientChannel.cpp;api/public/QuickbusClientChannel.cpp;api/public/ServerChannel.cpp;api/public/ServiceContext.cpp;api/service_helpers/AdminServiceUtils.cpp;api/service_helpers/AlgoServiceUtils.cpp;api/service_helpers/PositionUtilities.cpp;api/services/AdminService.proto;api/services/AlgoDefinitionService.proto;api/services/AlgoService.proto;api/services/ApiUnitTestService.proto;api/services/AuthService.proto;api/services/BasePositionService.proto;api/services/ErrorReportService.proto;api/services/HelloService.proto;api/services/MBOService.proto;api/services/MarginService.proto;api/services/MarketDataAuxiliaryService.proto;api/services/MarketDataRelay.proto;api/services/MarketDataService.proto;api/services/MoneyFileService.proto;api/services/OrderService.proto;api/services/OutOfProcessURLListener.proto;api/services/PersistenceService.proto;api/services/PositionService.proto;api/services/ShellDiagnosticService.proto;api/services/ShellLatencyService.proto;api/services/SyntheticSecurityService.proto;api/test/ApiTests.cpp;api/test/HelloServiceServer.cpp;config/ConfigCheck.cpp;config/ConfigDownloader.cpp;config/ConfigErrorCollector.cpp;config/ConfigLog.cpp;config/ConfigPropertyEvaluator.cpp;config/ConfigValueQueue.cpp;config/ConfigurationException.cpp;config/ConfigurationState.cpp;config/PreprocessInputStream.cpp;config/config.cpp;config/defaults/MarketData.conf;config/defaults/Ports.conf;config/defaults/Symbols.conf;config/defaults/cme_reference_data.conf;config/defaults/edge.conf;config/defaults/jetfix.conf;config/defaults/keycode.conf;config/defaults/logging.conf;config/defaults/orderman_cfg.conf;config/defaults/orders_fills_cleanup.conf;config/defaults/position_cfg.conf;config/defaults/span.conf;config/defaults/spreader.conf;config/defaults/testkeys.conf;config/defaults/threads.conf;config/defaults/toggles.conf;config/extensions/extensions.proto;config/invalid/invalid.proto;config/protos/ExchangeSimCfg.proto;config/protos/MarketData.proto;config/protos/Ports.proto;config/protos/Symbols.proto;config/protos/UI.proto;config/protos/cme_reference_data.proto;config/protos/jetfix.proto;config/protos/keycode.proto;config/protos/logging.proto;config/protos/mercury_cfg.proto;config/protos/orderman_cfg.proto;config/protos/orders_fills_cleanup.proto;config/protos/perflog_cfg.proto;config/protos/position_cfg.proto;config/protos/quickbus_cfg.proto;config/protos/span.proto;config/protos/spreader.proto;config/protos/subprocess.proto;config/protos/system.proto;config/protos/testkeys.proto;config/protos/threads.proto;config/protos/toggles.proto;config/tests/HTTPServer.cpp;config/tests/config_ref_tests.cpp;config/tests/config_tests.cpp;config/text_format/text_format.cpp;domain_model/Security.cpp;domain_model/Security.proto;domain_model/SecurityTests.cpp;domain_model/sod.cpp;domain_model/tests/domain_tests.cpp;expression/BooleanGrammar.cpp;expression/ExpressionEvaluator.cpp;expression/ParserExceptions.cpp;expression/Value.cpp;expression/tests/expression_parser_tests.cpp;jetfix/codec/FIXArray.cpp;jetfix/common/OutFIX.cpp;jetfix/connection/AsyncReader.cpp;jetfix/connection/IConnection.cpp;jetfix/connection/SocketConnection.cpp;jetfix/gateway/CoreGateway.cpp;jetfix/gateway/JetFIXGateway.cpp;jetfix/gateway/Session.cpp;jetfix/store/FIXFileStore.cpp;jetfix/store/session_name.cpp;jetfix/tests/async_reader_tests.cpp;jetfix/tests/decoding_tests.cpp;jetfix/tests/fix_encoding_stream_tests.cpp;jetfix/tests/fix_fragment_tests.cpp;jetfix/tests/jetfix_performance_tests.cpp;jetfix/tests/sample_fix.cpp;jetfix/tests/store_tests.cpp;logging/LoggerHub.cpp;logging/Sink.cpp;logging/logging.cpp;logging/tests/logging_tests.cpp;md/Diag/MDPeriodicDumper.cpp;md/Diag/ShmDumper.cpp;md/MBOProcessor.cpp;md/MBOServiceServer.cpp;md/MDClient.cpp;md/MDConsumer.cpp;md/MDConsumerHandle.cpp;md/MDConsumerInterop.cpp;md/MDProducer.cpp;md/MDProducerHandle.cpp;md/MemorySegmentUtils.cpp;md/PlatformLoader.cpp;md/PriceSize.cpp;md/Product.cpp;md/SecurityCache.cpp;md/SecurityDB.cpp;md/SecurityIDRecorder.cpp;md/SecurityMapper.cpp;md/SecurityOracle.cpp;md/SettlementRecorder.cpp;md/Shm/FixedSecurity.cpp;md/SyntheticSecurityService.cpp;md/cme/MDP3Utils.cpp;md/common.cpp;md/ice/ICEUtils.cpp;md/protos/co2.proto;md/relay/QueryServer.cpp;md/relay/RelayClient.cpp;md/relay/RelayRecorder.cpp;md/service/MarketDataServiceServer.cpp;md/test/Co2ManagedTestHelper.cpp;md/test/Co2TestInstrument.cpp;md/test/mbo_tests.cpp;md/test/md2_tests.cpp;md/test/md_test_utils.cpp;md/test/synthetic_book_merge_tests.cpp;md/vendor/OnixsUtils.cpp;mercury/actors/IPollableActor.cpp;mercury/broker/Broker.cpp;mercury/broker/BrokerProxy.cpp;mercury/broker/ILocalBroker.cpp;mercury/broker/IRemoteBroker.cpp;mercury/common/mercury_common.cpp;mercury/events/TimerEvent.cpp;mercury/executor/Executor.cpp;mercury/topics/Topic.cpp;metrics/metrics.cpp;metrics/system_metrics.cpp;orderman/actors/AsyncFactory.cpp;orderman/actors/FillStore.cpp;orderman/actors/GLBXExecutionGateway.cpp;orderman/actors/ICEExecutionGateway.cpp;orderman/actors/IExecutionGateway.cpp;orderman/actors/MDSupplementarySource.cpp;orderman/actors/OrderStore.cpp;orderman/actors/SODPosition.cpp;orderman/actors/SecuritySrc.cpp;orderman/actors/ServiceBridge.cpp;orderman/actors/order_manager/OrderBuilder.cpp;orderman/actors/order_manager/OrderManager.cpp;orderman/actors/order_manager/OrderServices.cpp;orderman/actors/order_manager/OrderServicesData.cpp;orderman/actors/order_manager/PositionIndex.cpp;orderman/core/IOrderServices.cpp;orderman/events/CancelRejectEvent.cpp;orderman/events/FilledPositionEvent.cpp;orderman/events/NewExecutionReportEvent.cpp;orderman/limiter/LimitStore.cpp;orderman/limiter/Limiter.cpp;orderman/limiter/ProductLimitNode.cpp;orderman/limiter/ProductLimitTree.cpp;orderman/limiter/SecurityLimitNode.cpp;orderman/limiter/SecurityLimitTree.cpp;orderman/limiter/tests/limit_tests.cpp;orderman/order_factory/DynamicOrderRegistry.cpp;orderman/order_factory/OrderFactory.cpp;orderman/order_router/OrderRouter.cpp;orderman/orderman_utils/BookUtils.cpp;orderman/orderman_utils/fix_order_codec.cpp;orderman/orderman_utils/orderman_utils.cpp;orderman/orders/CompositeOrder.cpp;orderman/orders/DynamicOrder.cpp;orderman/orders/GLBXNativeOrder.cpp;orderman/orders/ICENativeOrder.cpp;orderman/orders/Order.cpp;orderman/orders/TimeBoxOrder.cpp;orderman/orders/TriggerOrder.cpp;orderman/orders/algo/AlgoWrapperOrder.cpp;orderman/orders/algo/DynamicHelpers.cpp;orderman/orders/algo/IAlgoOrder.cpp;orderman/orders/algo/IAlgoServices.cpp;orderman/orders/algo/IBeforeLaunchAlgoServices.cpp;orderman/orders/algo/PositionUpdate.cpp;orderman/orders/algo/algo_orders/CoverAlgo.cpp;orderman/orders/algo/algo_orders/DeleteAndCoverAlgo.cpp;orderman/orders/algo/algo_orders/DormanAlgo.cpp;orderman/orders/algo/algo_orders/IcebergAlgo.cpp;orderman/orders/algo/algo_orders/JoinAlgo.cpp;orderman/orders/algo/algo_orders/LeanAlgo.cpp;orderman/orders/algo/algo_orders/LimitCoverAlgo.cpp;orderman/orders/algo/algo_orders/OffsetAlgo.cpp;orderman/orders/algo/algo_orders/ProRataAlgo.cpp;orderman/orders/algo/algo_orders/PyramidAlgo.cpp;orderman/orders/algo/algo_orders/RegisterDorman.cpp;orderman/orders/algo/algo_orders/ScratchAlgo.cpp;orderman/orders/algo/algo_orders/SplitterAlgo.cpp;orderman/orders/algo/algo_orders/TASAlgo.cpp;orderman/orders/algo/algo_orders/TASCounterAlgo.cpp;orderman/orders/algo/algo_orders/TopAlgo.cpp;orderman/orders/algo/algo_orders/limit_cover/LimitCoverAdapter.cpp;orderman/orders/algo/algo_orders/tests/AlgoTestDriver.cpp;orderman/orders/algo/algo_orders/tests/LimitCoverTests.cpp;orderman/orders/algo/algo_orders/tests/dorman_tests.cpp;orderman/orders/algo/algo_orders/tests/limit_cover/LimitCoverState.cpp;orderman/orders/algo/algo_orders/tests/limit_cover/TestSteps.cpp;orderman/orders/algo/algo_orders/tests/splitter_tests.cpp;orderman/orders/book_algos/BookAlgo.cpp;orderman/orders/book_algos/BookOrderBase.cpp;orderman/orders/book_algos/OCOOrder.cpp;orderman/orders/book_algos/PricerOrder.cpp;orderman/orders/queue_holder/QueueHolderOrder.cpp;orderman/orders/queue_holder/state_workers/QHOEndStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOStartStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOWaitingForAckStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOWaitingForCancelAllStateWorker.cpp;orderman/orders/queue_holder/state_workers/QHOWorkingStateWorker.cpp;orderman/orders/spreader_orders/SpreaderOrder.cpp;orderman/orders/spreader_orders/spreader/LegFillState.cpp;orderman/orders/spreader_orders/spreader/LegPropertyData.cpp;orderman/orders/spreader_orders/spreader/NLegsHedgeRecompData.cpp;orderman/orders/spreader_orders/spreader/QuoteLegPriceQuantityState.cpp;orderman/orders/spreader_orders/spreader/SingleFillHedger.cpp;orderman/orders/spreader_orders/spreader/SingleLegQuoter.cpp;orderman/orders/spreader_orders/spreader/SpreaderBookkeepingData.cpp;orderman/orders/spreader_orders/spreader/SpreaderChildOrderState.cpp;orderman/orders/spreader_orders/spreader/SpreaderLegData.cpp;orderman/orders/spreader_orders/spreader/SpreaderUtils.cpp;orderman/orders/spreader_orders/spreader/external_interfacing/SpreaderOrderBuilder.cpp;orderman/orders/spreader_orders/spreader/external_interfacing/SpreaderOrderServices.cpp;orderman/orders/spreader_orders/spreader/external_interfacing/SpreaderPreActivationOrderServices.cpp;orderman/orders/spreader_orders/spreader/hedger/HedgerManager.cpp;orderman/orders/spreader_orders/spreader/hedger/UnhedgedDelta.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerEndStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerStartStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWaitingForCancelAckStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWaitingForFirstAckCancelledStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWaitingForFirstAckStateWorker.cpp;orderman/orders/spreader_orders/spreader/hedger/hedger_states/HedgerWorkingStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/QuoteDriverSet.cpp;orderman/orders/spreader_orders/spreader/quoter/QuoteDriverSetHistory.cpp;orderman/orders/spreader_orders/spreader/quoter/QuoteLegDriver.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterEndStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterStartStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForCancelAckStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForFirstAckCancelledWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForFirstAckWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForIOCWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWaitingForSizeStateWorker.cpp;orderman/orders/spreader_orders/spreader/quoter/quoter_states/QuoterWorkingStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderEndStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderStartStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderWaitingForCancelAllStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderWaitingForInitialDataStateWorker.cpp;orderman/orders/spreader_orders/spreader_states/SpreaderWorkingStateWorker.cpp;orderman/orders/spreader_orders/tests/spreader_tests.cpp;orderman/server/OrderServiceServer.cpp;orderman/tests/fat_wrapper_tests.cpp;os/os.cpp;os/tests/os_tests.cpp;persistence/IStore.cpp;persistence/PersistenceServiceServer.cpp;persistence/SqliteStore.cpp;persistence/persistence_utils.cpp;persistence/tests/PersistenceServiceTests.cpp;plugin/SparkServices.cpp;plugin/plugin.cpp;quickbus/core/LocalNode.cpp;quickbus/core/Quickbus.cpp;quickbus/core/SubscriptionID.cpp;quickbus/core/TableID.cpp;quickbus/message_model/Update.cpp;quickbus/message_model/merge_updates.cpp;quickbus/network/QBConnection.cpp;quickbus/network/QBConnectionManager.cpp;quickbus/network/endpoint_description.cpp;quickbus/network/quickbus_msgs.proto;quickbus/pubsub/TablePublisher.cpp;quickbus/pubsub/TableSubscriber.cpp;quickbus/pubsub/tests/qb_pubsub_tests.cpp;quickbus/routing/INode.cpp;quickbus/routing/NodeID.cpp;quickbus/routing/Router.cpp;quickbus/rpc/RPCClient.cpp;quickbus/rpc/RPCServer.cpp;quickbus/rpc/RPCSessionID.cpp;quickbus/rpc/rpc_utils.cpp;quickbus/rpc/tests/qb_rpc_tests.cpp;quickbus/tests/quickbus_tests.cpp;sparkproto/SparkProtos.proto;testing/catch_test_runner.cpp;tracing/PerfLog.cpp;tracing/bts_trace.cpp;utils/AuthSessionManager.cpp;utils/AuthToken.cpp;utils/Dispatcher.cpp;utils/GrowableSPSCQueue.cpp;utils/HTTPStream.cpp;utils/PBUtils.cpp;utils/Puid.cpp;utils/SecureLogon.cpp;utils/SharedMemory.cpp;utils/Sqlite_utils.cpp;utils/Uuid.cpp;utils/crypto/CipherType.cpp;utils/crypto/CryptoInit.cpp;utils/crypto/Digest.cpp;utils/crypto/KeyCodeHelper.cpp;utils/crypto/PasswordCallback.cpp;utils/crypto/PrivateKey.cpp;utils/crypto/PublicKey.cpp;utils/crypto/iostreambio.cpp;utils/datetime.cpp;utils/download.cpp;utils/file_utils.cpp;utils/init_spark_lib.cpp;utils/is_unittest_environment.cpp;utils/sftp.cpp;utils/stats.cpp;utils/tests/AuthTokenTests.cpp;utils/tests/IDGeneratorTests.cpp;utils/tests/SingleWriterConcurrentVectorTests.cpp;utils/thread_manager.cpp) \ No newline at end of file diff --git a/src/web/CMakeDeps.cmake b/src/web/CMakeDeps.cmake index 484519561..81ff120a3 100644 --- a/src/web/CMakeDeps.cmake +++ b/src/web/CMakeDeps.cmake @@ -1 +1 @@ -set(sources ../../externals/linux/include/google/protobuf/descriptor.proto;../../externals/linux/include/google/protobuf/timestamp.proto;../lib/api/apicore.proto;../lib/api/apigateway.proto;../lib/api/apioptions.proto;../lib/api/services/AdminService.proto;../lib/api/services/AlgoDefinitionService.proto;../lib/api/services/AlgoService.proto;../lib/api/services/ApiUnitTestService.proto;../lib/api/services/AuthService.proto;../lib/api/services/BasePositionService.proto;../lib/api/services/ErrorReportService.proto;../lib/api/services/HelloService.proto;../lib/api/services/MBOService.proto;../lib/api/services/MarginService.proto;../lib/api/services/MarketDataAuxiliaryService.proto;../lib/api/services/MarketDataRelay.proto;../lib/api/services/MarketDataService.proto;../lib/api/services/MoneyFileService.proto;../lib/api/services/OrderService.proto;../lib/api/services/OutOfProcessURLListener.proto;../lib/api/services/PersistenceService.proto;../lib/api/services/PositionService.proto;../lib/api/services/ShellDiagnosticService.proto;../lib/api/services/ShellLatencyService.proto;../lib/api/services/SyntheticSecurityService.proto;../lib/domain_model/Security.proto;../lib/md/protos/co2.proto;../lib/sparkproto/SparkProtos.proto;api/build.sh;api/node_modules/exit/test/fixtures/create-files.sh;api/node_modules/object.assign/test.sh;api/node_modules/watch/release.sh;api/quiet_build.sh;api/src/DynamicService.ts;api/src/ServiceContext.ts;api/src/bts_assert.ts;ui/src/Access.fs;ui/src/Accounts/ClipLimits.fs;ui/src/Accounts/ProductLimits.fs;ui/src/Accounts/SecurityLimits.fs;ui/src/Accounts/State.fs;ui/src/Accounts/Types.fs;ui/src/Accounts/View.fs;ui/src/App.fs;ui/src/Cmd.fs;ui/src/Controls/Button.fs;ui/src/Controls/DataGrid.fs;ui/src/Controls/Fields.fs;ui/src/Controls/Modal.fs;ui/src/Controls/ReactGrid.fs;ui/src/Controls/Table.fs;ui/src/Controls/nbsp.fs;ui/src/Global.fs;ui/src/Imports.fs;ui/src/Lens.fs;ui/src/Login/Login.fs;ui/src/Nav.fs;ui/src/State.fs;ui/src/Types.fs;ui/src/Users/State.fs;ui/src/Users/Types.fs;ui/src/Users/View.fs;ui/src/Util/EnumUtils.fs;ui/src/Util/JSMap.fs;ui/src/Util/StreamUtils.fs;ui/src/obj/Debug/netstandard2.0/ui.AssemblyInfo.fs) \ No newline at end of file +set(sources ../../externals/linux/include/google/protobuf/descriptor.proto;../../externals/linux/include/google/protobuf/timestamp.proto;../lib/api/apicore.proto;../lib/api/apigateway.proto;../lib/api/apioptions.proto;../lib/api/services/AdminService.proto;../lib/api/services/AlgoDefinitionService.proto;../lib/api/services/AlgoService.proto;../lib/api/services/ApiUnitTestService.proto;../lib/api/services/AuthService.proto;../lib/api/services/BasePositionService.proto;../lib/api/services/ErrorReportService.proto;../lib/api/services/HelloService.proto;../lib/api/services/MBOService.proto;../lib/api/services/MarginService.proto;../lib/api/services/MarketDataAuxiliaryService.proto;../lib/api/services/MarketDataRelay.proto;../lib/api/services/MarketDataService.proto;../lib/api/services/MoneyFileService.proto;../lib/api/services/OrderService.proto;../lib/api/services/OutOfProcessURLListener.proto;../lib/api/services/PersistenceService.proto;../lib/api/services/PositionService.proto;../lib/api/services/ShellDiagnosticService.proto;../lib/api/services/ShellLatencyService.proto;../lib/api/services/SyntheticSecurityService.proto;../lib/domain_model/Security.proto;../lib/md/protos/co2.proto;../lib/sparkproto/SparkProtos.proto;api/build.sh;api/quiet_build.sh;api/src/DynamicService.ts;api/src/ServiceContext.ts;api/src/bts_assert.ts;ui/src/Access.fs;ui/src/Accounts/ClipLimits.fs;ui/src/Accounts/ProductLimits.fs;ui/src/Accounts/SecurityLimits.fs;ui/src/Accounts/State.fs;ui/src/Accounts/Types.fs;ui/src/Accounts/View.fs;ui/src/App.fs;ui/src/Cmd.fs;ui/src/Controls/Button.fs;ui/src/Controls/DataGrid.fs;ui/src/Controls/Fields.fs;ui/src/Controls/Modal.fs;ui/src/Controls/ReactGrid.fs;ui/src/Controls/Table.fs;ui/src/Controls/nbsp.fs;ui/src/Global.fs;ui/src/Imports.fs;ui/src/Lens.fs;ui/src/Login/Login.fs;ui/src/Nav.fs;ui/src/State.fs;ui/src/Types.fs;ui/src/Users/State.fs;ui/src/Users/Types.fs;ui/src/Users/View.fs;ui/src/Util/EnumUtils.fs;ui/src/Util/JSMap.fs;ui/src/Util/StreamUtils.fs;ui/src/obj/Debug/netstandard2.0/ui.AssemblyInfo.fs) \ No newline at end of file From e2f70cbc195ea59bc60a3e39b6275133daa991f1 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 21 May 2020 13:02:31 -0500 Subject: [PATCH 02/23] minor config tweaks needed after upgrading VisualStudio --- global.json | 6 ++++++ src/client/Directory.Build.Props | 4 ++++ src/client/spark/Spark.csproj | 1 + 3 files changed, 11 insertions(+) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 000000000..4046afc14 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "2.1.508", + "rollForward": "latestMajor" + } +} diff --git a/src/client/Directory.Build.Props b/src/client/Directory.Build.Props index d8ea6bc1c..a48e158db 100644 --- a/src/client/Directory.Build.Props +++ b/src/client/Directory.Build.Props @@ -22,6 +22,10 @@ $(BaseOutputPath)\gen\$(MSBuildProjectName) + + C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets + + diff --git a/src/client/spark/Spark.csproj b/src/client/spark/Spark.csproj index fd5930481..cca925dc0 100644 --- a/src/client/spark/Spark.csproj +++ b/src/client/spark/Spark.csproj @@ -12,6 +12,7 @@ win7-x64 AnyCPU $(MSBuildExtensionsPath)\$(VisualStudioVersion)\Bin\Microsoft.CSharp.targets + $(MSBuildToolsPath)\Microsoft.CSharp.targets logo.ico WinExe mbts.ui.shell.App From 06d708f3ead37e8c59533edef342c51b15069f6f Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 21 May 2020 13:08:54 -0500 Subject: [PATCH 03/23] new csharp api examples --- .../bts.api.csharp/Directory.Build.Props | 14 ++ .../bts.api.csharp/bts.api.csharp.sln | 25 ++++ .../bts.api.csharp/src/bts.api.csharp.csproj | 15 ++ .../src/bts/api/csharp/NameIDPair.cs | 23 +++ .../src/bts/api/csharp/Program.cs | 74 ++++++++++ .../bts/api/csharp/examples/BookExample.cs | 60 ++++++++ .../bts/api/csharp/examples/OrderExample.cs | 139 ++++++++++++++++++ .../api/csharp/examples/PositionExample.cs | 125 ++++++++++++++++ .../api/csharp/examples/SecurityExample.cs | 48 ++++++ .../bts/api/csharp/examples/SendOrderModel.cs | 110 ++++++++++++++ .../csharp/examples/SendOrdersContinously.cs | 100 +++++++++++++ .../src/bts/api/csharp/utils/BookUtils.cs | 52 +++++++ .../src/bts/api/csharp/utils/OrderUtils.cs | 9 ++ .../src/bts/api/csharp/utils/SecurityUtils.cs | 8 + 14 files changed, 802 insertions(+) create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/Directory.Build.Props create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/bts.api.csharp.sln create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts.api.csharp.csproj create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/NameIDPair.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/Program.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/BookExample.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/OrderExample.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/PositionExample.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SecurityExample.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrderModel.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrdersContinously.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/BookUtils.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/OrderUtils.cs create mode 100644 src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/SecurityUtils.cs diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/Directory.Build.Props b/src/sdk/examples/client_sdk/bts.api.csharp/Directory.Build.Props new file mode 100644 index 000000000..df1b1e61d --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/Directory.Build.Props @@ -0,0 +1,14 @@ + + + $(MSBuildThisFileDirectory) + Debug + + + + $(CSharpAPIRoot)\build\$(Configuration) + $(BaseOutputPath)\bin + $(BaseOutputPath)\obj\$(MSBuildProjectName) + $(BaseOutputPath)\obj\$(MSBuildProjectName) + $(BaseOutputPath)\gen\$(MSBuildProjectName) + + diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/bts.api.csharp.sln b/src/sdk/examples/client_sdk/bts.api.csharp/bts.api.csharp.sln new file mode 100644 index 000000000..09ef87f2f --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/bts.api.csharp.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30104.148 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bts.api.csharp", "src/bts.api.csharp.csproj", "{2B9FECC6-16F4-4B85-92BF-62AAA2B7652D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2B9FECC6-16F4-4B85-92BF-62AAA2B7652D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2B9FECC6-16F4-4B85-92BF-62AAA2B7652D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2B9FECC6-16F4-4B85-92BF-62AAA2B7652D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2B9FECC6-16F4-4B85-92BF-62AAA2B7652D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FC6CE0CA-B0CB-44E3-8176-1D759D05AAD4} + EndGlobalSection +EndGlobal diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts.api.csharp.csproj b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts.api.csharp.csproj new file mode 100644 index 000000000..a986d7395 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts.api.csharp.csproj @@ -0,0 +1,15 @@ + + + + netcoreapp2.1;netcoreapp3.1 + Exe + + + + + + + + + + diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/NameIDPair.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/NameIDPair.cs new file mode 100644 index 000000000..37766c807 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/NameIDPair.cs @@ -0,0 +1,23 @@ +using System; + +namespace bts.api.csharp { + readonly struct NameIDPair { + public NameIDPair(string name, uint id) { + this.name = name ?? throw new ArgumentNullException(nameof(name)); + this.id = id; + } + + public string name { get; } + public uint id { get; } + } + + static class Users { + public static NameIDPair Default => + new NameIDPair("bts", 1); + } + + static class Accounts { + public static NameIDPair Default => + new NameIDPair("TEST", 1); + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/Program.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/Program.cs new file mode 100644 index 000000000..b7d64cb0a --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/Program.cs @@ -0,0 +1,74 @@ +using bts.api.core; +using bts.api.csharp.examples; +using bts.api.orderman; +using bts.api.position; +using CommandLine; +using System; +using System.Collections.Generic; +using System.Threading; + +namespace bts.api.csharp { + class Program { + static void Main(string[] args) => + Parser.Default.ParseArguments(args).WithParsed(_run); + + static void _run(Options options) { + var exit_event = new ManualResetEvent(false); + SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); + var service_context = new ServiceContext(); + var login = service_context.login("bts", ""); + login.Wait(); + var examples = new List(); + if (options.subscribe_securities ||! options.any_enabled) { + examples.Add(new SecurityExample(service_context.locate())); + } + if (options.subscribe_positions || !options.any_enabled) { + examples.Add(new PositionExample(service_context.locate())); + } + if (options.subscribe_orders || !options.any_enabled) { + examples.Add(new OrderExample(service_context.locate())); + } + if (options.subscribe_book || !options.any_enabled) { + examples.Add(new BookExample(service_context.locate())); + } + if (options.send_orders || !options.any_enabled) { + examples.Add(SendOrderLoop.init_loop(service_context.locate(), service_context.locate())); + } + Console.CancelKeyPress += on_cancel_key_press; + exit_event.WaitOne(); + foreach (var ex in examples) + ex.Dispose(); + // + void on_cancel_key_press(object sender, ConsoleCancelEventArgs e) { + exit_event.Set(); + e.Cancel = true; + } + } + + class Options { + [Option("subscribe-securities", Required = false, HelpText = "run security-subscription example.")] + public bool subscribe_securities { get; set; } + + [Option("subscribe-orders", Required = false, HelpText = "run order-subscription example.")] + public bool subscribe_orders { get; set; } + + [Option("subscribe-positions", Required = false, HelpText = "run position-subscription example.")] + public bool subscribe_positions { get; set; } + + [Option("subscribe-books", Required = false, HelpText = "run book-subscription example.")] + public bool subscribe_book { get; set; } + + [Option("send-orders", Required = false, HelpText = "run send-orders example.")] + public bool send_orders { get; set; } + + // if none are enabled, all options will be flipped on, + // so the user need not specify a single argument to see the examples run. + public bool any_enabled => + subscribe_securities || + subscribe_orders || + subscribe_positions || + subscribe_book || + send_orders; + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/BookExample.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/BookExample.cs new file mode 100644 index 000000000..9eeed4906 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/BookExample.cs @@ -0,0 +1,60 @@ +using bts.api.core; +using bts.api.csharp.utils; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Reactive.Linq; +using System.Threading; +using SecurityKey = System.UInt32; + +namespace bts.api.csharp.examples { + /// + /// Uses the api to observe book updates + /// for security in the system, and organize them into a Dictionary. + /// + class BookExample : IDisposable { + readonly Dictionary _books = new Dictionary(); + readonly IDisposable _subscription; + + public BookExample(MarketDataService market_data_service) { + _subscription = market_data_service.subscribei_book() + .ObserveOn(SynchronizationContext.Current) + .Subscribe(_on_book_update); + } + + public void Dispose() { + _subscription.Dispose(); + } + + void _on_book_update(Update update) { + foreach (var new_book in update.added) { + // of course, we shouldn't have entries for any books in update.added yet + Debug.Assert(!_books.ContainsKey(new_book.Key)); + // display bbo in the console window + _print_book_info(new_book.Key, $"book received for the first time, bbo is: {BookUtils.fmt_bbo(new_book)}"); + // add the new book to our map + _books.Add(new_book.Key, new_book); + } + foreach (var change in update.changes) { + // of course, the security key shouldn't change + Debug.Assert(change.Old.Key == change.New.Key); + // our book entry for this security should be identitical to change.Old + Debug.Assert(change.Old.Bid.SequenceEqual(_books[change.Old.Key].Bid)); + Debug.Assert(change.Old.Ask.SequenceEqual(_books[change.Old.Key].Ask)); + // display the current book in the console window + _print_book_info(change.New.Key, $"book changed, now bbo is: {BookUtils.fmt_bbo(change.New)}"); + // update our map with the changed book + _books[change.New.Key] = change.New; + } + foreach (var old_book in update.removed) { + // of course, we should have entries for all books in update.removed + Debug.Assert(_books.Remove(old_book.Key)); + } + } + + static void _print_book_info(SecurityKey key, string message) { + Console.WriteLine($"Security {key}: {message}."); + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/OrderExample.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/OrderExample.cs new file mode 100644 index 000000000..31e19daae --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/OrderExample.cs @@ -0,0 +1,139 @@ +using bts.api.core; +using bts.api.orderman; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Reactive.Linq; +using System.Threading; +using AccountKey = System.UInt32; +using OrderKey = System.UInt32; + +namespace bts.api.csharp.examples { + /// + /// Uses the to observe order updates, + /// and group them by account. + /// + class OrderExample : IDisposable { + readonly Dictionary> _data = new Dictionary>(); + IDisposable _subscription; + + public OrderExample(OrderService order_service) { + /// 'OrderService' has 2 methods which can be used to subscribe to order updates. + /// ------------------------------------------------------------------------------------- + /// 1) . + /// 2) . + /// This method (no. 2) is typically preferrable because the data it provides is immutable. + /// -------------------------------------------------------------------------------------- + _subscription = order_service.subscribei_orders() + // the 'ObserveOn' call below ensures that the + // callback will be invoked this thread. + // Be sure to do this if you don't want to worry + // about multi-threading issues (locking, etc). + .ObserveOn(SynchronizationContext.Current) + .Subscribe(_on_update); + + } + + public event Action account_orders_changed; + + public void Dispose() { + _subscription.Dispose(); + } + + public IEnumerable get_account_orders(AccountKey account) { + if (_data.TryGetValue(account, out var account_orders)) { + return account_orders.Values; + } + return Enumerable.Empty(); + } + + void _on_order_added(OrderRecordImmutable new_order) { + if (!_data.TryGetValue(new_order.Def.AccountId, out var account_orders)) { + // this is the first order for this account. + // initialize the account orders dictionary, and add it to our data. + account_orders = new Dictionary(); + _data.Add(new_order.Def.AccountId, account_orders); + } + // now add the order to account_orders + account_orders.Add(new_order.Key, new_order); + } + + void _on_order_changed(Change change) { + // ch.New and ch.Old have the same key. + Debug.Assert(change.New.Key == change.Old.Key); + var key = change.New.Key; + // react to a changed order + if (change.New.State.FilledQuantity != change.Old.State.FilledQuantity) { + // Display new fills in the console window. + var num_new_fills = change.New.State.FilledQuantity - change.Old.State.FilledQuantity; + _print_order_info(key, $"received {num_new_fills} new fills."); + // Be mindful that orders can be overfilled. + if (change.New.State.FilledQuantity > change.New.State.Quantity) { + // Display overfills in the console window. + var num_over_fills = change.New.State.FilledQuantity - change.New.State.Quantity; + _print_order_info(key, $"overfilled by {num_over_fills}"); + } else { + // Display working qty in the console window. + var working_qty = change.New.State.Quantity - change.New.State.FilledQuantity; + _print_order_info(key, $"still working {working_qty}."); + } + } + // Display order status changes in the console window. + if (change.New.State.Status != change.Old.State.Status) { + _print_order_info(key, $"status changed from {change.Old.State.Status} to {change.New.State.Status}."); + } + // Account will not change, so our dictionary will definitely have a key for this account. + Debug.Assert(_data.ContainsKey(change.New.Def.AccountId)); + var account_orders = _data[change.New.Def.AccountId]; + // The value for this key in account_orders should equal ch.Old. + Debug.Assert(account_orders[key].Equals(change.Old)); + // update account orders with the changed order. + account_orders[key] = change.New; + } + + void _on_order_removed(OrderRecordImmutable old_val) { + // An entry for this order should be present in our data, + // as it is in the 'removed' items. + // Assert this is the case to illustrate the point. + Debug.Assert(_data.ContainsKey(old_val.Def.AccountId)); + var account_orders = _data[old_val.Def.AccountId]; + // the removed value should match the one currently in our data. + // Assert this is the case, then remove the order. + Debug.Assert(account_orders[old_val.Key].Equals(old_val)); + account_orders.Remove(old_val.Key); + _print_order_info(old_val.Key, "has been removed."); + } + + void _on_update(Update update) { + // record which accounts experienced an order update, then + // at the end of this method, fire the account_orders_changed event for each + var accounts_with_order_updates = new HashSet(); + foreach (OrderRecordImmutable new_order in update.added) { + _on_order_added(new_order); + accounts_with_order_updates.Add(new_order.Def.AccountId); + } + foreach (Change change in update.changes) { + _on_order_changed(change); + accounts_with_order_updates.Add(change.New.Def.AccountId); + } + foreach (OrderRecordImmutable old_order in update.removed) { + _on_order_removed(old_order); + accounts_with_order_updates.Add(old_order.Def.AccountId); + } + // display all accounts with order updates in the Console window. + Console.WriteLine("The following accounts experienced order changes: "); + foreach (var account in accounts_with_order_updates) { + Console.WriteLine("\n\t" + account); + } + // lastly, fire the account_orders_changed event for each account experienced an order update. + foreach (var account in accounts_with_order_updates) { + account_orders_changed?.Invoke(account); + } + } + + void _print_order_info(OrderKey order_key, string message) { + Console.WriteLine($"Order {order_key}: {message}."); + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/PositionExample.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/PositionExample.cs new file mode 100644 index 000000000..99fd34365 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/PositionExample.cs @@ -0,0 +1,125 @@ +using bts.api.core; +using bts.api.position; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Reactive.Linq; +using System.Threading; + +namespace bts.api.csharp.examples { + /// + /// A pair of security, and account id, + /// which uniquely identifies each PositionUnit. + /// + readonly struct PositionKey { + public PositionKey(uint security_id, uint account_id) { + this.security_id = security_id; + this.account_id = account_id; + } + + public uint security_id { get; } + public uint account_id { get; } + + public static PositionKey from_position(PositionUnitImmutable p) => + new PositionKey(p.SecurityId, p.AccountId); + + public override string ToString() => + $"Sec {security_id}, Acc {account_id}"; + } + + /// + /// Uses the api to monitor positions + /// for every account/security pair, and organize them into a Dictionary. + /// + class PositionExample : IDisposable { + readonly Dictionary _data = new Dictionary(); + IDisposable _subscription; + + public PositionExample(PositionService position_service) { + /// 'PositionService' has 2 methods which can be used to subscribe to position updates. + /// ------------------------------------------------------------------------------------- + /// 1) . + /// 2) . + /// This method (no. 2) is typically preferrable because the data it provides is immutable. + /// -------------------------------------------------------------------------------------- + _subscription = position_service.subscribei_position_data() + // the 'ObserveOn' call below ensures that the + // callback will be invoked this thread. + // Be sure to do this if you don't want to worry + // about multi-threading issues (locking, etc). + .ObserveOn(SynchronizationContext.Current) + .Subscribe(_on_update); + } + + public event Action data_changed; + + public IReadOnlyDictionary data => _data; + + public void Dispose() => + _subscription.Dispose(); + + void _on_position_added(PositionUnitImmutable new_val) { + var k = PositionKey.from_position(new_val); + // this entry should NOT be present in our _data, as it is in the 'added' items. + // Assert this is the case to illustrate the point. + Debug.Assert(!_data.ContainsKey(k)); + _print_position_info(k, $"initial position received. Day: Long {new_val.DayLongPos}, Short {new_val.DayShortPos}, Net {new_val.DayLongPos - new_val.DayShortPos}."); + // add the new position unit to _data + _data.Add(k, new_val); + } + + void _on_position_changed(Change change) { + var k = PositionKey.from_position(change.New); + // ch.New and ch.Old have the same key (i.e., the Account/Security pair), + Debug.Assert(change.New.AccountId == change.Old.AccountId); + Debug.Assert(change.New.SecurityId == change.Old.SecurityId); + // of course, the value for this key in our dictionary should equal ch.Old. + Debug.Assert(_data[k].Equals(change.Old)); + // Display changes to the day position in the console window. + // 1) check if the day long changed + if (change.New.DayLongPos != change.Old.DayLongPos) { + Console.WriteLine($"[{k}] day long changed from {change.Old.DayLongPos} to {change.New.DayLongPos}."); + } + // 2) check if day short changed + if (change.New.DayShortPos != change.Old.DayShortPos) { + Console.WriteLine($"[{k}] day short changed from {change.Old.DayShortPos} to {change.New.DayShortPos}."); + } + // 3) check if net day position changed + var new_net_day_pos = change.New.DayLongPos - change.New.DayShortPos; + var old_net_day_pos = change.Old.DayLongPos - change.Old.DayShortPos; + if (new_net_day_pos != old_net_day_pos) { + Console.WriteLine($"[{k}] day net changed from {old_net_day_pos} to {new_net_day_pos}."); + } + // update _data with the changed position. + _data[k] = change.New; + } + + void _on_position_removed(PositionUnitImmutable old_val) { + var k = PositionKey.from_position(old_val); + // this entry should be present in our _data, as it is in the 'removed' items. + // Assert this is the case to illustrate the point. + Debug.Assert(_data.ContainsKey(k)); + // this should match our data. Assert this is the case. + Debug.Assert(_data[k].Equals(old_val)); + _data.Remove(k); + Console.WriteLine($"[{k}] position has been removed."); + } + + void _on_update(Update update) { + foreach (PositionUnitImmutable p in update.added) { + _on_position_added(p); + } + foreach (Change ch in update.changes) { + _on_position_changed(ch); + } + foreach (PositionUnitImmutable p in update.removed) { + _on_position_removed(p); + } + data_changed?.Invoke(); + } + + void _print_position_info(PositionKey position_key, string message) { + Console.WriteLine($"Position {position_key}: {message}."); + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SecurityExample.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SecurityExample.cs new file mode 100644 index 000000000..2f7ed031f --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SecurityExample.cs @@ -0,0 +1,48 @@ +using bts.api.core; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Reactive.Linq; +using System.Threading; +using SecurityKey = System.UInt32; + +namespace bts.api.csharp.examples { + /// + /// Uses the api to observe the + /// state of securities in the system. + /// + class SecurityExample : IDisposable { + readonly IDisposable _subscription; + readonly Dictionary _securities = new Dictionary(); + + public SecurityExample(MarketDataService market_data_service) { + _subscription = market_data_service.subscribei_securities() + .ObserveOn(SynchronizationContext.Current) + .Subscribe(_on_securities_update); + } + + public void Dispose() { + _subscription.Dispose(); + } + + void _on_securities_update(Update update) { + foreach (var new_security in update.added) { + // of course, we shouldn't have entries for any books in update.added yet + Debug.Assert(!_securities.ContainsKey(new_security.Id)); + // display bbo in the console window + Console.WriteLine($"received new security: {new_security}."); + // add the new security to our map + _securities.Add(new_security.Id, new_security); + } + // As you may have noticed, all of the subcribe methods in the api + // return an IObservable>. It is worth noting that for security updates, + // 'changes' will always be empty. + Debug.Assert(!update.changes.Any()); + foreach (var old_security in update.removed) { + // of course, we should have entries for all books in update.removed + Debug.Assert(_securities.Remove(old_security.Id)); + } + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrderModel.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrderModel.cs new file mode 100644 index 000000000..5d7e3ffd3 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrderModel.cs @@ -0,0 +1,110 @@ +using bts.api.csharp.utils; +using bts.api.orderman; +using System; +using System.Threading.Tasks; + +namespace bts.api.csharp.examples { + static class OrderTemplates { + public static CustomOrderDefinition limit() => new CustomOrderDefinition { Limit = new LimitOrderDefinition() }; + public static CustomOrderDefinition market() => new CustomOrderDefinition { Market = new MarketOrderDefinition() }; + public static CustomOrderDefinition iceberg(double show_quantity) => iceberg(show_quantity, limit()); + public static CustomOrderDefinition iceberg(double show_quantity, CustomOrderDefinition child) => + new CustomOrderDefinition { + Iceberg = new IcebergOrderDefinition { + ShowQuantity = show_quantity, + Child = child + } + }; + } + + /// + /// Exemplifies how the api may be used to + /// send several common order types (limit, market, and iceberg). + /// + class SendOrderModel { + readonly OrderService _service; + + public SendOrderModel(OrderService service) { + _service = service; + } + + public OrderDefinition create_order_definition(NameIDPair user, NameIDPair account, uint security_key, CustomOrderDefinition custom_def) { + return new OrderDefinition { + Account = account.name, + AccountId = account.id, + User = user.name, + UserId = user.id, + SecurityKey = security_key, + CustomDef = custom_def + }; + } + + /// + /// Sends a limit order (asynchronous). + /// + /// The order id if the submission was successful, otherwise null. + public Task send_limit_order_async(NameIDPair user, NameIDPair account, uint security_key, uint quantity, double price) { + return send_order_async(user, account, security_key, OrderTemplates.limit(), quantity, price); + } + + /// + /// Sends a market order (asynchronous). Note no price parameter is required for market orders. + /// + /// The order id if the submission was successful, otherwise null. + public Task send_market_order_async(NameIDPair user, NameIDPair account, uint security_key, uint quantity) { + return send_order_async(user, account, security_key, OrderTemplates.market(), quantity, 0.0); + } + + /// + /// Sends an iceberg of limit orders (asynchronous). + /// + /// The order id if the submission was successful, otherwise null. + public Task send_iceberg_order_async(NameIDPair user, NameIDPair account, uint security_key, uint quantity, double price, double show_quantity) { + return send_order_async(user, account, security_key, OrderTemplates.iceberg(show_quantity), quantity, price); + } + + /// + /// Sends an order of the type specified by (asynchronous). + /// + /// The order id if the submission was successful, otherwise null. + public async Task send_order_async(NameIDPair user, NameIDPair account, uint security_key, CustomOrderDefinition custom_order_definition, uint quantity, double price) { + Console.WriteLine($"submitting order for user ({user}), account ({account}): {OrderUtils.fmt_order(quantity, price, custom_order_definition)}."); + var reply = await _service.create_order_async(new Create { + Quantity = quantity, + Price = price, + NewOrder = create_order_definition(user, account, security_key, custom_order_definition) + }); + if (reply.success) { + Console.WriteLine($"received ack that order has been submitted. Order id is {reply.value.OrderKey}."); + return reply.value.OrderKey; + } else { + Console.WriteLine($"order submission was unsuccessful: [{reply.value.ErrorCode}] {reply.value.Msg}."); + return null; + } + } + + public void send_order(NameIDPair user, NameIDPair account, uint security_key, CustomOrderDefinition custom_order_definition, uint quantity, double price) { + /// Note, the thread will be blocked until a response is received from the server. + /// For this reason, is usually preferred. + /// An example of how to use that method is provided in . + Console.WriteLine($"Creating order {OrderUtils.fmt_order(quantity, price, custom_order_definition)}"); + var response = _service.create_order(new Create { + Quantity = quantity, + Price = price, + NewOrder = create_order_definition(user, account, security_key, custom_order_definition) + }); + switch (response.ErrorCode) { + case OrderError.Ok: + _print_order_info(response.OrderKey, "successfully created."); + break; + default: + Console.WriteLine($"Failed to create order: [{response.ErrorCode}] {response.Msg}."); + break; + } + } + + static void _print_order_info(uint order_key, string message) { + Console.WriteLine($"Order {order_key}: {message}."); + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrdersContinously.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrdersContinously.cs new file mode 100644 index 000000000..366d62368 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/examples/SendOrdersContinously.cs @@ -0,0 +1,100 @@ +using bts.api.core; +using bts.api.orderman; +using mbts; +using System; +using System.Linq; +using System.Reactive.Linq; +using System.Threading; +using System.Threading.Tasks; + +namespace bts.api.csharp.examples { + /// + /// The code in this example is a bit more advanced than the others, + /// as it is designed to send orders, asynchronously, in a continuous loop. + /// For straightforward examples of how to send orders with the api, + /// check out . + /// + static class SendOrderLoop { + /// + /// As a security key is required to send an order, this method + /// uses the to observe the securities stream, + /// then on the first update, initializes the send-order-loop + /// with one of the newly received security keys. + /// + public static IDisposable init_loop(OrderService order_service, MarketDataService market_data_service) { + // If you need to familiarize yourself with the IObservable pattern, check out the official docs: + // https://docs.microsoft.com/en-us/dotnet/api/system.iobservable-1?view=netcore-3.1 + + var single_security_stream = market_data_service.subscribei_securities() + .Where(u => u.all.Any()) + .Take(1) + .Select(u => u.all.FirstOrDefault()); + + return init_loop(single_security_stream, create_loop); + IDisposable create_loop(SecurityImmutable sec) { + return new LoopImpl(order_service, sec.Id); + } + } + + /// + /// Observes the security stream and creates a new send-order-loop + /// whenever a new security arrives. The previous send-order-loop + /// is disposed when the next security arrives, so only one send-order-loop + /// shall be active at a time. + /// + /// The security stream used to initialize send-order-loops. + /// An IDisposable that unsubsribes from the securities stream, and disposes the active send-order-loop. + public static IDisposable init_loop(IObservable security, Func factory) { + IDisposable active_loop = null; + var security_sub = security.Subscribe(s => + Interlocked.Exchange(ref active_loop, factory(s))?.Dispose()); + return Disposable.Create(dispose); + void dispose() { + security_sub.Dispose(); + active_loop?.Dispose(); + } + } + + class LoopImpl : IDisposable { + bool _is_disposed; + + public LoopImpl(OrderService service, uint security_key) + : this(service, Users.Default, Accounts.Default, security_key, 10, TimeSpan.FromSeconds(3)) { } + + public LoopImpl(OrderService service, NameIDPair user, NameIDPair account, uint security_key, int max_orders, TimeSpan delay_between_orders) { + var model = new SendOrderModel(service); + send_orders_continuously(); + + async void send_orders_continuously() { + // Periodically send an order with one of the CustomOrderDefinitions below. + // If you are unfamiliar with async/await, this will also serve as a simple example + // of how those keywords may be used. However, there is no substite for the official docs: + // https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/ + var order_templates = new CustomOrderDefinitionImmutable[] { + new CustomOrderDefinitionImmutable(OrderTemplates.limit()), + new CustomOrderDefinitionImmutable(OrderTemplates.market()), + new CustomOrderDefinitionImmutable(OrderTemplates.iceberg(5)) + }; + for (int num_orders_sent = 0; num_orders_sent < max_orders && !_is_disposed; num_orders_sent++) { + int template_index = num_orders_sent % order_templates.Length; + CustomOrderDefinitionImmutable templatei = order_templates[template_index]; + // The order templates we created are immutable, however the api uses the mutable form. + // Not to worry tho, there is a nifty method called 'CloneToMutable.' + // Note that all of the non-primitive immutable parameters in the api methods have a 'CloneToMutable' method, + // it is not unique to CustomOrderDefinitionImmutable. + CustomOrderDefinition template = templatei.CloneToMutable(); + await model.send_order_async(user, account, security_key, template, 12, 100); + // pause for a moment before sending the next order + await Task.Delay(delay_between_orders); + } + } + } + + public void Dispose() { + // flip _is_disposed to true, so the 'send_orders_continuously' loop + // knows it's time to stop. + _is_disposed = true; + } + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/BookUtils.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/BookUtils.cs new file mode 100644 index 000000000..90134fe24 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/BookUtils.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; + +namespace bts.api.csharp.utils { + static class BookUtils { + /// + /// Get a display string of the bbo. + /// + public static string fmt_bbo(BookEntryImmutable book) { + return fmt_bbo(get_bbo(book)); + } + + /// + /// Get a display string of the bbo. + /// + public static string fmt_bbo((PriceEntryImmutable? bid, PriceEntryImmutable? ask) bbo) { + return $"{fmt_price_entry(bbo.bid)} <--> {fmt_price_entry(bbo.ask)}"; + } + + /// + /// Get a display string of a . + /// + public static string fmt_price_entry(PriceEntryImmutable? price_entry) { + return price_entry.HasValue ? fmt_price_entry(price_entry.Value) : "N/A"; + } + + /// + /// Get a display string of a . + /// + public static string fmt_price_entry(PriceEntryImmutable price_entry) { + return $"{price_entry}"; + } + + /// + /// Get a display string of the bbo. + /// + public static (PriceEntryImmutable? best_bid, PriceEntryImmutable? best_ask) get_bbo(BookEntryImmutable book) { + return (get_top_of_book(book.Bid), get_top_of_book(book.Ask)); + } + + /// + /// Returns the first element in , + /// as this represents the top price level + /// of a particular side of the market (bid or ask). + /// + public static PriceEntryImmutable? get_top_of_book(IEnumerable depth) { + foreach (var d in depth) + return d; + // there are no elements (the book is empty for this side), so return null. + return null; + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/OrderUtils.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/OrderUtils.cs new file mode 100644 index 000000000..376f97314 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/OrderUtils.cs @@ -0,0 +1,9 @@ +using bts.api.orderman; + +namespace bts.api.csharp.utils { + static class OrderUtils { + public static string fmt_order(uint quantity, double price, CustomOrderDefinition custom_order_definition) { + return $"{quantity} @ {price}: {custom_order_definition}"; + } + } +} diff --git a/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/SecurityUtils.cs b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/SecurityUtils.cs new file mode 100644 index 000000000..a2d193ab1 --- /dev/null +++ b/src/sdk/examples/client_sdk/bts.api.csharp/src/bts/api/csharp/utils/SecurityUtils.cs @@ -0,0 +1,8 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace bts.api.csharp.utils { + static class SecurityUtils { + } +} From 76a29bdc8aa1fc3b5fcbecbd29f843d5b31585be Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 21 May 2020 15:26:50 -0500 Subject: [PATCH 04/23] client ui supports all integer tick sizes (not just 1) --- src/client/spark/view/Spark/Core/TickUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/view/Spark/Core/TickUtils.cs b/src/client/spark/view/Spark/Core/TickUtils.cs index 9a98b1e68..b420ea7b4 100644 --- a/src/client/spark/view/Spark/Core/TickUtils.cs +++ b/src/client/spark/view/Spark/Core/TickUtils.cs @@ -326,7 +326,7 @@ namespace mbts.spark { } static bool _check_tick_size(double tick_size) => - (tick_size > 0 && tick_size <= 0.5) || tick_size == 1; + tick_size > 0 && (tick_size <= 0.5 || MathUtils.is_int(tick_size)); struct SpecKey : IEquatable { public readonly uint denominator, display_digits; From fab3334b1e501b548bad164e6988d141820f2be3 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Fri, 22 May 2020 11:23:03 -0400 Subject: [PATCH 05/23] Updated release notes --- doc/user/content/release_notes/_index.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/user/content/release_notes/_index.md b/doc/user/content/release_notes/_index.md index c93e04db4..f4b079b62 100644 --- a/doc/user/content/release_notes/_index.md +++ b/doc/user/content/release_notes/_index.md @@ -4,6 +4,13 @@ weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ +## 2.16.0 +### Bug Fixes + - Solved an issue that could result in incorrect ladder levels + - Solved an issue that could lead to incorrect routing of orders in the event of certain MSGW changes +### API Changes + - Add C# client side API samples for order entry, position monitoring and market data observation + ## 2.15.10 ### Bug Fixes - Solved an issue that could cause the user interface to fail when playing some alert sounds From 42b1c921a886743ff4b242c68de32bc5cfc9c699 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 22 May 2020 12:24:42 -0500 Subject: [PATCH 06/23] OrderBook custom state grid params are sorted alphabetically (again) --- src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs index 98490b306..9de3b520d 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs @@ -787,7 +787,7 @@ namespace mbts.spark { break; } } - foreach (var p in dcs) + foreach (var p in dcs.empty_if_null().OrderBy(kv => kv.Key)) _vm.current_algo_custom_state.Add(new NamedValueVM(p.Key, DynamicOrderHelper.fmt_param(p.Value))); } } From 4c73a63ae8fab953e37a8757f0901b021d7ecb54 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 22 May 2020 12:30:53 -0500 Subject: [PATCH 07/23] release notes for bug fix (unsorted custom state grid params in orderbook) --- doc/user/content/release_notes/_index.md | 718 +---------------------- 1 file changed, 1 insertion(+), 717 deletions(-) diff --git a/doc/user/content/release_notes/_index.md b/doc/user/content/release_notes/_index.md index c93e04db4..9ebc4bfeb 100644 --- a/doc/user/content/release_notes/_index.md +++ b/doc/user/content/release_notes/_index.md @@ -1,717 +1 @@ -+++ -title = "Release notes" -weight = 3 -sort_by = "weight" -insert_anchor_links = "right" -+++ -## 2.15.10 -### Bug Fixes - - Solved an issue that could cause the user interface to fail when playing some alert sounds -### API Changes - - Added settlement and position information to the API - - Added the ability for user algos to report custom state to the user interface - - Added the ability for algos to discover all active securities -## 2.15.3 -### Bug Fixes - - Fixed a bug where some CME currency spreads exhibited incorrect tick values -## 2.15.2 -### User Visible Changes - - Excel RTD plugin can now receive ICE market data -## 2.15.1 -### Bug Fixes - - Fixed a FIX log parsing issue that resulted in exchange gateway logon problems -## 2.15.0 -### User Visible Changes - - Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message - - Synthetic cloning now allows for any parameter to be changed, including tick size and leg contracts - - Added ability to import synthetics from a CSV file; see our manual for further details on this process - - Reduced Iceberg reloading latency -### Bug Fixes - - Fixed a bug where highlighted fills could lose their highlight status - - Fixed a bug where the (Mini) OrderBook PIQ could be displaying an old value - -## 2.14.3 -### Bug Fixes - - Fixed a bug regarding ICE logon messaging - -## 2.14.2 -### Bug Fixes - - Fixed a bug regarding ICE messaging - -## 2.14.1 -### Bug Fixes - - Fixed a bug regarding ICE logon authentication - -## 2.14.0 -### User Visible Changes - - All ladders can now be recentered by (shift or alt) + double clicking over the Price column in a ladder - - Added a Max Order Quantity setting to the Safety Checks tab on the Ladder settings. This setting allows for a user-defined maximum order quantity. - - Added a Price Display Format setting to the Market Price and Size Display tab on the Ladder settings. This setting allows for price levels in the ladder to be displayed without a decimal separator. - - Synthetic instrument creation with 3 legs no longer defaults to butterfly quantites -### Bug Fixes - - Fixed an issue where market transition were not observed by IAlgoOrder - - Fixed a bug in error reporting - - Fixed a bug in the PnL window where specifying a certain grouping order would lead to a UI failure - -## 2.13.0 -### User Visible Changes - - Added the name of the spreader to the parent algo badge (for spreader child orders), in the fills, orderbook and floating orderbook windows - - Added support for sounds for new orders - - Added a new quoting throttle parameter for the spreader, that throttles quotes that are moving toward the inside market but are still a configurable number of ticks away - - Enabled the ladder to remember the left panel scroll position across front end restarts -### Bug Fixes - - Fixed the local fills window so that it does not show the admin fills - - Removed the deleted accounts from the ladder accounts dropdown - - Fixed the orderbook price for iceberg of spreaders - -## 2.12.0 -### User Visible Changes - - Added support for ICE market data and order execution -### Internal Changes - - Lots of permission / admin changes to facilitate ICE - -## 2.11.0 -### User Visible Changes - - Fixed fills form time filter to also apply to SOD fills - - Addressed an issue that could prevent the web Admin UI from displaying over slow HTTP connections - - Removed the option to enter manual spread fills - - Fixed an issue that could cause erroneous fill account attribution in the event of a crash -### Internal Changes - - Added support for tag 1031. Currently defaults to Y, can it be override through config. - - To facilitate support, allowed the bts user to view and edit algos from all other users - - Improved system tests - - Improved log messages in UI to include dispatcher thread name - - Added support for Windows core dumps in the UI - -## 2.10.0 -### User Visible Changes - - Fills now include information about the algo that originated the fill - - A new, more powerful PnL form is now available -### API Changes - - Added security state information (pre open, halted, normal, closed, etc) -### Bug Fixes - - Brought back the "select all" check box in the mini order book - - Fixed an issue in the market data subsystem that on rare occasions could result in a startup crash -### Internal Changes - - Fixed an issue that was stopping us from interpreting SOD times as local rather than GMT -## 2.9.3 -### Internal Changes - - Fixed system test scripts -## 2.9.2 -### Bug Fixes - - Fixed an issue with the exchange simulator that could lead to crossed markets -## 2.9.1 -### Bug Fixes - - Fixed an issue with trade sound alerts, where in some cases the use of a "In Between" condition could lead to a UI failure. - - Fixed an issue with the display of the new raw position column in the market view window. - - Fixed the popup label that describes the raw position information in the ladder -### Internal Changes - - Avoided shipping production configuration defaults that lead to trying to download a position file for the development sftp server. -### Api - - C# API sample now uses synchronous calls. - -## 2.9.0 -### User Visible Changes - - Improved Workspace management User Interface - - Added the ability to change grid background colors - - The Spark UI Window group now has a title in the Windows task bar - - Added sound alerts for trade events, see Launcher -> Settings -> Alerts - - Allowed composite algos that are attached to existing orders to identify fills that were already present prior to attachment - - Added import facilities for GMI position files - - Added the ability for risk managers to enter manual fills - - Added "raw" P&L columns, that is columns that *do not* include spread legs in their accounting -### Bug Fixes - - Fixed the settings action menu (Load/Save/Reset to Factory) - - Fixed the method used to determine if a security is expired to take into account the start of day time -### API Changes - - Fixed an issue in the Client SDK that could lead to occasional failures to connect to the spark server as well as excessive memory usage. - - Added the ability for algo orders to distinguish fills existing prior to launch -### Internal Changes - - Changed how we packaged certain third-party components - - Added logging of entitlement status - - Tagged outgoing orders with sequence number of marketdata or FIX event that triggered them -## 2.8.3 -### Bug Fixes - - Fixed a bug that could cause an OrderBook's Security column filter to be blank - - Fixed a bug that could cause a UI failure when clearing a filter selection on a filtering widget -## 2.8.2 -### Bug Fixes - - Added proper display factors for SOM spreads - - Fixed a bug that could cause a UI failure when trying to change settings in a synthetic ladder -## 2.8.1 -### Bug fixes - - Fixed an error in the UI grids filtering widget -## 2.8.0 -### User Visible Changes - - Added ProRata and Scratch algos - - Ladder badge now grows/shrinks to fill the containing cell - - Attached algo parameters are now displayed in the update panel - - Fixed a bug where the update panel would show '-' values when only - 1 order was selected - - Fixed a bug that cause cause a failure on startup if the user - loaded a workspace with a Ladder that had a dynamic order type - selected by default - - Increased width of login panel to better show login error messages - - Added optional 'Maker/Taker' pricing to Spreader algo - - Algo buttons in ladder can now be made to deactivate after launching an algo or remain 'sticky' -### Internal changes - - Made it easier to generate simple UI's for new order types -### API Changes - - Dynamic orders can now use QuantityMeasure parameter types - -## 2.7.2 -### User Visible Changes - - Changed the login dialog to avoid leaking workspace names from other users. - - Added new Splitter algo. From the manual: The splitter is useful - for pro-rata markets where you want to vary your exposure - independent of the order quantity that you want to fill. The - splitter will complete when the number of fills reaches or exceeds - the order quantity but it will put exposed_qty total size on the - market. Splitter favors order size over queue position. -### Internal Changes - - Made spark more resilient to lack of connectivity to the CME web site for downloading of templates. - -## 2.7.1 -### User Visible Changes - - Fixed some issues with the Cover algo, where in some circumstances - it would erroneously cancel launched hedges on completion. - -## 2.7.0 -### User Visible Changes - - Allowed algos to process "in-flight" fills while shutting down - - Changed the cover algo to continue to hedge while shutting down -### API Changes - - Changed the API so that algos do not fully terminate until all - their children are terminated. Algos that are in the process of - shutting down in response to a complete or cancel call will still - receive child updates, which they can use to calculate and report - an accurate fill count (during this shutdown stage algos cannot - create, cancel or update children). A new IAlgoServices method, - is_shutting_down(), can be used to determine if an algo is - shutting down. - -## 2.6.2 -### User Visible Changes - - Fixed an issue in the ladder where in some cases the mini order book could not be brought up from a badge - - Fixed a rare race condition that could lead to erroneous limit enforcement - - Fixed an issue with the margin limits where an error could occur if an account name with more than 12 chars was used - -## 2.6.1 -### User Visible Changes - - Fixed an issue in the ladder where an error could occur when trying to change ladder settings for the first time - -## 2.6.0 -### User Visible Changes - - In the ladder made last trade more distinctive when overlayed on the volumn column - - In the ladder, corrected display of volume tool tip - - In the ladder, changed the consolidation of last trade to consider only the price ignoring aggressor changes - - Added an option for the Top Algo to delete itself if within N ticks from top of book - - Address a rare issue that could lead to an error report on UI exit - - Added margin risk limits - - Added the "Offset" algo. Offset prices a child algo at a parameterizable distance from the top of the book - - Avoided switching the current account and order type on open ladders when limits are changed -### Internal Changes - - Ensure that admin logins are always allowed to login, regardless of keycode status. - -## 2.5.0 -### User Visible Changes - - Added loss limit risk check - - Made algos, synthetics and user names private so that multiple users can share a single system privately. - - Allowed the mini order book defaults for column widths to be changed from the mini order book - - Allowed the mini order book to shrink to the minimum size that will be needed to display the selected columns - - Improved accuracy of the directional arrow when displaying last trades in the volumn column -## 2.4.0 -### User Visible Settings - - In the ladder, changed the last trade column to accumulate successive trades at the same price - - Fixed a bug in the order book where the right side ladder would display the top leve order's security rather then current row's - - Added OK, Cancel buttons to the security picker for ladder profiles or sounds - - Added ladder settings for the mini order book - - Added a safety check to guard against unintentional market crosses - - Improved the Queue Holder mode in the spreader: - - Added a Show Quantity, allowing the spreader to keep queue position of the trailing orders as Fills (of size Show Qty) happen - - Improved spreader performance when in Queue Holder mode -### Internal changes - - Suppressed order callbacks for completed/canceled orders. This should eliminate some bogus error logs by spreader orders. - - Addressed a potential concurrency issues with service initialization. - - -## 2.3.0 -### User Visible Changes - - Introduced multiple settings profiles for the ladder - - This allows multiple standard configuration for the ladder, optionally with security specific variations - - Made Cover order more independent from its hedging chidren: - - Cover continues to operate even if an hedging child is canceled - - When a cover is canceled it will detach from any running hedging children, instead of canceling them - - Changed Lean, Join and Cover algos to hide themselves in the ladder once they have completed their work - - Changed manual fills to appear in day PnL rather than in the SOD records - - Add buy/sell coloring to fill rows in fills window - - Streamlined the mini order book: - - Display of the mini order book popup is quicker - - Only exchange orders are displayed - - Update buttons are only displayed for orders that are under control of an algo with the update applying to the entire algo, not just the exchange order - - We can now select multiple rows to attach, detach, update or cancel multiple orders in a batch - - A checkbox column has been added to make clearer which rows are selected -### API Changes - - Enhanced the API to allow algos to implement custom cancel handling - - Allowed algos to control their visibility in the ladder through the API -### Internal Changes - - Added system requirements to Spark documentation - - Implemented keycodes - - Temporarily rejected stop and stop limit orders, pending bug fixes - -## 2.2.0 -### User Visible Changes - - Made our orders easier to spot in MBO display - - Changed middle-click on center column to recenter ladder and introduced Alt middle-click on center to bring up the MBO popup - - Fixed Net/Absolute radio button in risk admin UI - - Fixed double counting of spread legs in limits - - Removed expired fills from the system - - Improved handling of orders with undiscovered securities - - Added feedback to the ladder when the user attempts to middle click on bid/ask columns using an order that does not have parameters - - Fixed display of algo studio algo types in order book - - Hid net change setting in synthetic ladders - - Fixed a number of problems with filtering on the Fills form - - On the Lean algo, OnToward and Away are now calculated with respect to the opposite inside market at time of the order launch - - Iceberg Spreaders with queue holders are not erroneously cancelled after the first fill - - Added security symbol column to fills window - - Re-organized ladder settings dialog to make it clearer and easier to use - -## 2.1.4 -### User Visible Changes - - Fixed handling of cancel button in security picker - -## 2.1.3 -### User Visible Changes - - Fixed a simulator bug in the handling of 0 sized orders - -## 2.2.1 -### User Visible Changes - - Fixed order book form exception when display a spreader order for whichs the legs were not present yet - -## 2.1.1 -### User Visible Changes - - Added PIQ to GLBX Iceberg orders - - Corrected handling of stop limit orders - -## 2.1.0 -### User Visible Changes - - Added support for the GLBX Iceberg order type - - Allowed quick algo param edits by middle-clicking on either the bid/ask columns or a "favorite" button - - Added support for manual fills, either entered manually or imported from file. Manual fills are used only for P&L purposes, they have no impact on limits - - Allowed the LTQ and VAP values to be overlayed on the same ladder column - - Added day position information to the ladder - - Added PIQ to the mini order book - - Fixed a rare bug that could lead to server failure when requesting market data - - Fixed a bug that could cause incorrect price displays for certain types of synthetic securities - -## 2.0.5 -### User Visible Changes - - Fixed a bug in the handling of rejected QHO orders - - Implemented stricter position limit enforcement - - Fixed a bug that could cause server failure when trying to attach to already attached orders - -## 2.0.4 -### User Visible Changes - - Fixed performance regression in order manager - -### Internal changes - - Improved market data diagnostics for bad configurations - - Changed market data default buffer size - -## 2.0.3 -### Internal changes - - Improved backwards compatibility in UI settings - - -## 2.0.2 -### User Visible Changes - - Middle click the ladder price column to show the orders for that price level - - Middle click the bid or ask column in the ladder no longer sends an order - -### Internal changes - - Improved market by order performance under heavy load - - Fixed a concurrency bug in SIM - -## 2.0.0 -### User Visible Changes - - Support for attaching and detaching algos to existing orders - - Support for display and update of all parameters in running algos - - Streamlining of order badge decorations in ladder - - New order search/filtering algorithm for order book - - Simpler representation of complex algo chains in order book and mini order book - - Visual and usability improvements to mini order book - - Streamlining of algo parameter dialog in ladder - - New spreader queue holder behavior - - Visual improvements to the order book - - New server side API - - Improved admin UI performance - - Optimized PIQ rendering -### Internal changes - - Exchange simulator no longer requires daily sequence number reset - - Improved MD resilience to corrupted shared memory - - Native orders can now buffer updates/cancels when disconnected or pending first acknowledgment - - Improved settings manager tool output - - Added diagnostics in the event MD memory corruption is detected - - Added systems tests for join,lean, iceberg and spreader orders - - Made exchange order recovery more resilient in the presence of database loss - -## 1.6.2 -### User Visible Changes -### Exchange simulator - - Exchange simulator now now produce position in queue data - -## 1.6.0 -### User Visible Changes -#### New Features - - You can now view your order's position in queue in the ladder -#### Bug Fixes - - Fix a bug in the order popup in the ladder which could lead to a crash. - -## 1.5.9 -### User Visible Changes - - Fix for stunnel connections on Windows 7 - -## 1.5.8 -### User Visible Changes - - Fixed a bug where it was possible to crash the UI by entering an order through the order ticket if Enter was used to dismiss the dialog. - - Fixed a spreader reporting bug which could cause the server to crash if an algo was used to control certain types of synthetics - - Improved user message when the UI fails to login - - Integrated stunnel into UI to make VPN setup unnecessary in unsecured environments. -## 1.5.7 -### User Visible Changes - - New videos have been added to the manual describing the [Algo Studio](./bts_spark/Trading/_index.md#algo-studio) and [Spreader](./bts_spark/Spreader/_index.md) - - Fixed a bug that occasionally would cause windows to be position outside the visible screen on startup - - Fixed a bug in the order book form that would occasionally cause the Recreate Order option to be unavailable - - Added a confirmation step to Cancel All, Cancel Buys and Cancel Sells commands - - Fixed Aggressor coloring and ladder high/low coloring in the SIM execution gateway - - Added initial support for ICE market data - - In an effort to streamline the PnL report we've made the following changes: - - The PnL report will by default filter for Futures contracts only - - If you wish to see Spread contracts again you may change Security Type column filter - - The PnL report will now only show rows in which there is a position (net and/or day) - - The Exchange, Start PnL, Total Net Pos, and Total Net PnL columns are now hidden by default - - These columns can be restored by toggling their visibility within the PnL's Settings form - - A new Traded Today column has been added to the PnL - - Filtering on this column will allow a user to restrict the report to only show today's position -### Internal changes - - Improved organization of the shell notification architecture - - Added logging to help troubleshoot shell exit hang - -## 1.5.6 -### User Visible Changes - - Fixed a bug that could cause limits to be erroneously enforced - - Improved algo documentation - - Changed how the spreader uses net change - - Simplified trigger algo user interface -### Internal changes - - Defaulted to not recording sim market data - - Improved documentation build - - Added additional performance tracing - -## 1.5.5 - - Fixed Market View 'stale working orders' bug - -## 1.5.4 - - Avoided logging when warming up cache - -## 1.5.3 - - Fixed sounds startup issue - -## 1.5.2 - - Added better logging to AlgoDefinitionService - -## 1.5.1 - - Fixed missing securities in the Fills and P&L windows. - -## 1.5.0 -### User Visible Changes -#### New Features - - This release introduces a major new feature, the Algo Studio, a - set of tools allowing traders to create their own algos by - composing existing algos to express unique strategies. -#### User Interface Improvements - - Removed security key field from most grids - - Removed trade key field from time and sales grid - - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - - Fixed the floating order book so that rows are no longer - highlighted after an order is modified - - Relocated quantity and price columns in floating order book immediately after the cancel column; users now can move the mouse a much shorter distance when modifying their orders - - The escape key now closes the floating order book -#### Bug Fixes - - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - - Fixed a bug in the order book where sometimes parent orders would not update their last message column. - -#### Algos - - Added OCO Algo - - An OCO order creates a relationship between a child order and a 'stop' or 'other' order such that when one of these is cancelled, both cancel, or when one is filled, the other order's size is debited in the amount of the fill. Composing this order with Cover simulates scalping functionality -#### SDK - - Improved SDK documentation and usability - - Dynamic orders are now properly identified in the order book -#### Documentation - - Information on the Spark API has been added to the Spark manual - - The documentation has been updated and reorganized to make information easier to find -### Internal Changes - - Improved robustness of limit system test - - Fixed a bug in handling of built-in bts to user that could lead to failure to login as bts in old systems - - Improved market data subsystem to support security definition updates - - Fixed a startup race in market data that could lead to data corruption on startup - - Increased default order price precision to 8 digis as required by some CME products - -## 1.4.11 -### New Features - - Floating Order Book - - The floating order book provides a quick view of orders occupying a price level in the ladder - - Launch the Floating Order Book by middle-clicking a ladder badge - - Cancel orders by clicking on the red X in the Cancel column - - Quantity and Price modification - - Clicking on a row will select it, providing the option for changing your price and quantity - - Enter in a new value or use the up/down buttons to set a desired value - - Press the green checkbox to finalize your change and update the order -### SDK - - Improved SDK documentation and usability -### User Interface Improvements - - The following spreader quoting parameters have been deprecated: - - Hidden parameter - - Price Type setting of the Conditional parameter -### Bug Fixes - - Fixed a limit enforcement problem that could lead to 0 sized orders being sent to the exchange - -## 1.4.10 -### Bug Fixes - - Removed duplicate entries in performance log - -## 1.4.9 -### SDK - - Added ticker events to the order API -### Performance Improvements - - Significantly improved hedging speed -### Bug Fixes - - Fixed a visual oddity in the order book UI when using High DPI displays - -## 1.4.8 -### Marketdata - - Additional trade details for CME ticker - -## 1.4.7 -### Bug Fixes - - Corrected FIX tag 1028, ManualOrderIndicator, when orders are triggered by algos - -## 1.4.6 -### Ladder Usability Improvements - - The ladder can now be zoomed in/out according to a user's preference - - The zoom slider can be enabled from Ladder Form -> Settings button -> Left Pane tab -> check Zoom Slider checkbox - - The zoom functionality can also be performed via hotkey and mouse wheel combinations - - Zoom In = CTRL + Mouse wheel up - - Zoom Out = CTRL + Mouse wheel down - - - Reset zoom = CTRL + Mouse wheel click or double click on the zoom slider -### Exchange simulator - - Improved the exchange simulator to track real market data more closely -### Bug Fixes - - Fixed a UI crash in some cases when attempting to sort the order book by time - -## 1.4.5 - - Fixed entitlement validation for ICS spreads - - Tuned performance logging - -## 1.4.4 - -### Performance Improvements - - Reduced performance logging activity - -## 1.4.3 - -### Ladder Usability Improvements - - Controls found in Left Pane of the ladder can now be hidden via the checkboxes found under Ladder Form -> Settings button -> Left Pane tab - - The Left Pane is now scrollable with the mouse wheel when there isn't enough vertical space to accomodate the entire form - - The Left Pane can now grown and shrunk horizontally via the splitter between the left pane and the main ladder area -### Performance Improvements - - Requoting and hedging latency has been reduced by up to 30% -### Software Development Kit (SDK) Improvements - - The API now enforces authentication -### Bug Fixes - - The Market View form now honors filters when new securities are added - -## 1.4.2 - -### User Interface Improvements - - When creating a synthetic from the Market View window, securities are now added to the Create Synthetic dialog in the same sort order as they appear in grid -### Bug Fixes - - Shell no longer crashes when removing a security from the synthetics window - - It is now possible to create a new synthetic using the same name as a previously deleted synthetic -### SDK Improvements - - Improved Client and Server SDK clarity and documentation -### Performance Improvements - - Synthetic calculation speed was improved by 400%. -### Risk / Entitlement System - - Risk Admin UI - - Spark users now have separate Trading, RiskAdmin, and/or MDAdmin permissions - - Spark users can now only add other users or accounts if permissioned to do so. - - Market Data Entitlement - - Automated market data reporting - - -## 1.4.1 - -### Tabs - - Tabs now shrink and expand to make better use of horizontal space -### Bug Fixes - - Fixed a bug that could cause excessive CPU usage when a connection broke - - Fixed a layout bug in hedging/requoting performance reports - - Fixed account name mismatching bug for old fills -### Absolute Position limits - - Positions can now be netted or absolute for purposes of limit enforcing - -## 1.4.0 - -### Speed Enhancements - - Improved requoting and hedging performance - - Improved order book form performance -### Server Side SDK - - Added a beta version of the server side SDK -### Front End - - Added status bars to all UI grids -### Reporting - - Added reporting of hedging and requoting performance - -## 1.3.8 - -### Speed Enhancements - - Further speed enhancements -### Conditional (new quoting parameter) - - Reduces re-quoting updates by only quoting if N ticks away from the opposite inside market. - - Quotes are canceled when it gets further away. - - "Price Type" dictates if this logic applies to the quoting market or to the synthetic spread market. - -## 1.3.7 - -### Net Change pricing - - The ability to price synthetics based off of net change - -## 1.3.5 - -### Speed Enhancements - - Further speed enhancements -### Separation of implied and direct market data - - Viewing within a market view will now show 3 columns - - Direct - - Implied - - Merged - - Ability to configure the market data size in a ladder as the following - - Direct - - Implied - - Merged -### Synthetic creation option to choose Merged or Direct - - The ability to choose Merged or Direct per leg when creating a synthetic -### Volume at price - - Within a ladder, you can now see a volume at price graph - - This is configurable from a ladder's settings as well -### Customized settings in all windows - - All windows now contain a settings page where grid settings (font color, size, etc) are applied - - These settings can be saved on a per-window basis or as a Default for newly-launched windows - - -## 1.3.1 Through 1.3.4 - -### Speed Enhancements - - Further speed enhancements - -## 1.2 - -### Market View - - Synthetic future leg working orders are now shown - -### Order Book - - Many visual facets of the Order Book grid can now be customized - - The Order Book settings page can be accessed from the gears icon in the Order Book toolbar or from the right-click menu - - The Expand/Collapse All button has been separated into two different buttons on the toolbar - -### Sound Alerts - - Sounds alerts can now be configured for various order events - - Configure sounds under the Sound/Notification Triggers on the Order Book settings page - -### Fills - - Newly launched fill windows will filter out start-of-day records by default - -### PnL - - Prices are now formatted with penny precision - - Day PnL has been added to the Totals footer at the bottom of the window - -### Ladder - - Order badges now have been improved to communicate a variety of order state - - Background color now indicates order side - - Child orders will display a one-character abbreviation to their parent order enclosed in a rectangle; the rectangle will have a fill color matching the parent order - - Border color around badge will match the associated algo color - - Exchange orders will present with a solid dot in the badge's top-right corner - - When multiple orders reside at the same level, a solid triangle will be present in badge's bottom-right corner; all other badge decorations will not be visible in this state - - Hedge orders will present with a vertical line inside the badge's left border - - Trigger orders, once triggered, will no longer be shown in the ladder - - Session High and Low visual indicators have been added to the Price column - - Session range is now indicated in the Price column - - A button reflecting position has been added above the quantity field - - This button reflects the position for the currently selected account - - Pressing the button will copy the position size to the quantity field - - Order quantity button size values are now customizable - - Default size preset values can now be changed, as well as added or removed - - This can be configured per ladder instance (i.e. per security) by making use of the Custom tab - - Synthetic ladders that were saved as part of a workspace are now restored on startup - -### Synthetics - - Hedge Ratio parameter has been renamed to Lean Qty Factor - - Spreader now includes a Hidden mode parameter - - A quoting leg can be hidden, ie an order will not be sent out until the market crosses the computed quoting price. When that happens, the quote is sent out as an IOC order. - -### Algos - - Trigger orders now can contain a Trigger Exit parameter based on time or price; once the exit condition has been met the Trigger order will cancel - - IOC/FAK order type added - - Cover order type added - - Canceling a synthetic order no longer cancels any working hedge orders - -### General - - A manual page has been added to the launcher Help menu - - Various help buttons and tooltips were added throughout the application - - Various cash per point values updated - - Time-based grid filters now have tick up/down buttons - - Numerous performance improvements and stability enhancements - - Automated position and Order Book maintenance during daily recycle - - Individual fills will be compacted into the Start of Day position records - - Orders from the day before the recycle will be deleted - - -## 1.1 - -### 1.1.22 -- Order Book: Orders in Error status can now be recreated -- Order Book: Orders containing child orders will now be collapsed by default. -- Order Book: Expand / Collapse All button added to the right-click menu and window action pane, denoted by ▲ icon -- Order Book: Symbol column added to allow for filtering based on group symbol -- Time filters now have a quick Set Last Hour hyperlink which will set the Period Begin filter to (Now - 1 hour) - -### 1.1.20 -- Update CME market data handler for price precision extension. - https://www.cmegroup.com/confluence/display/EPICSANDBOX/Price+Precision+Extension - -### 1.1.8 -- Enabled wild cards in risk management UI -- Fixed spreader order updates - -### 1.1.7 -- Fixed spread leg price fill -- Fixed HO cash per point value - -### 1.1.6 -- Fixed occasional crash when filtering fills -- Fixed several cash per point multipliers -- Colored time of sales row with aggressor side -- Iceberg orders now cancel (rather than an error) when a child is canceled - -### 1.1.0 -- Added per user self match protection, location and self match protection FIX tag settings -- Implemented a new "Trigger Order" algo -- Corrected tick formatting for a number of products -- Added the ability to recreate canceled orders -- Added leg fills to facilitate futures based PnL -- PnL report now has PnL columns calculated based on your Start of Day, current day, and total position -- Start, Day and Total PnL columns are painted with a red or green background color based on if the pnl value is negative or positive respectively -- Corrected cash per point values, used in pnl calculations, for a number of products -- PnL report will now remember any customizations you make to filtering and/or sorting criteria ++++ title = "Release notes" weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ ## 2.16.1 ### Bug Fixes - OrderBook's algo state parameters (in the panel on the right side) are sorted alphabetically ## 2.15.10 ### Bug Fixes - Solved an issue that could cause the user interface to fail when playing some alert sounds ### API Changes - Added settlement and position information to the API - Added the ability for user algos to report custom state to the user interface - Added the ability for algos to discover all active securities ## 2.15.3 ### Bug Fixes - Fixed a bug where some CME currency spreads exhibited incorrect tick values ## 2.15.2 ### User Visible Changes - Excel RTD plugin can now receive ICE market data ## 2.15.1 ### Bug Fixes - Fixed a FIX log parsing issue that resulted in exchange gateway logon problems ## 2.15.0 ### User Visible Changes - Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message - Synthetic cloning now allows for any parameter to be changed, including tick size and leg contracts - Added ability to import synthetics from a CSV file; see our manual for further details on this process - Reduced Iceberg reloading latency ### Bug Fixes - Fixed a bug where highlighted fills could lose their highlight status - Fixed a bug where the (Mini) OrderBook PIQ could be displaying an old value ## 2.14.3 ### Bug Fixes - Fixed a bug regarding ICE logon messaging ## 2.14.2 ### Bug Fixes - Fixed a bug regarding ICE messaging ## 2.14.1 ### Bug Fixes - Fixed a bug regarding ICE logon authentication ## 2.14.0 ### User Visible Changes - All ladders can now be recentered by (shift or alt) + double clicking over the Price column in a ladder - Added a Max Order Quantity setting to the Safety Checks tab on the Ladder settings. This setting allows for a user-defined maximum order quantity. - Added a Price Display Format setting to the Market Price and Size Display tab on the Ladder settings. This setting allows for price levels in the ladder to be displayed without a decimal separator. - Synthetic instrument creation with 3 legs no longer defaults to butterfly quantites ### Bug Fixes - Fixed an issue where market transition were not observed by IAlgoOrder - Fixed a bug in error reporting - Fixed a bug in the PnL window where specifying a certain grouping order would lead to a UI failure ## 2.13.0 ### User Visible Changes - Added the name of the spreader to the parent algo badge (for spreader child orders), in the fills, orderbook and floating orderbook windows - Added support for sounds for new orders - Added a new quoting throttle parameter for the spreader, that throttles quotes that are moving toward the inside market but are still a configurable number of ticks away - Enabled the ladder to remember the left panel scroll position across front end restarts ### Bug Fixes - Fixed the local fills window so that it does not show the admin fills - Removed the deleted accounts from the ladder accounts dropdown - Fixed the orderbook price for iceberg of spreaders ## 2.12.0 ### User Visible Changes - Added support for ICE market data and order execution ### Internal Changes - Lots of permission / admin changes to facilitate ICE ## 2.11.0 ### User Visible Changes - Fixed fills form time filter to also apply to SOD fills - Addressed an issue that could prevent the web Admin UI from displaying over slow HTTP connections - Removed the option to enter manual spread fills - Fixed an issue that could cause erroneous fill account attribution in the event of a crash ### Internal Changes - Added support for tag 1031. Currently defaults to Y, can it be override through config. - To facilitate support, allowed the bts user to view and edit algos from all other users - Improved system tests - Improved log messages in UI to include dispatcher thread name - Added support for Windows core dumps in the UI ## 2.10.0 ### User Visible Changes - Fills now include information about the algo that originated the fill - A new, more powerful PnL form is now available ### API Changes - Added security state information (pre open, halted, normal, closed, etc) ### Bug Fixes - Brought back the "select all" check box in the mini order book - Fixed an issue in the market data subsystem that on rare occasions could result in a startup crash ### Internal Changes - Fixed an issue that was stopping us from interpreting SOD times as local rather than GMT ## 2.9.3 ### Internal Changes - Fixed system test scripts ## 2.9.2 ### Bug Fixes - Fixed an issue with the exchange simulator that could lead to crossed markets ## 2.9.1 ### Bug Fixes - Fixed an issue with trade sound alerts, where in some cases the use of a "In Between" condition could lead to a UI failure. - Fixed an issue with the display of the new raw position column in the market view window. - Fixed the popup label that describes the raw position information in the ladder ### Internal Changes - Avoided shipping production configuration defaults that lead to trying to download a position file for the development sftp server. ### Api - C# API sample now uses synchronous calls. ## 2.9.0 ### User Visible Changes - Improved Workspace management User Interface - Added the ability to change grid background colors - The Spark UI Window group now has a title in the Windows task bar - Added sound alerts for trade events, see Launcher -> Settings -> Alerts - Allowed composite algos that are attached to existing orders to identify fills that were already present prior to attachment - Added import facilities for GMI position files - Added the ability for risk managers to enter manual fills - Added "raw" P&L columns, that is columns that *do not* include spread legs in their accounting ### Bug Fixes - Fixed the settings action menu (Load/Save/Reset to Factory) - Fixed the method used to determine if a security is expired to take into account the start of day time ### API Changes - Fixed an issue in the Client SDK that could lead to occasional failures to connect to the spark server as well as excessive memory usage. - Added the ability for algo orders to distinguish fills existing prior to launch ### Internal Changes - Changed how we packaged certain third-party components - Added logging of entitlement status - Tagged outgoing orders with sequence number of marketdata or FIX event that triggered them ## 2.8.3 ### Bug Fixes - Fixed a bug that could cause an OrderBook's Security column filter to be blank - Fixed a bug that could cause a UI failure when clearing a filter selection on a filtering widget ## 2.8.2 ### Bug Fixes - Added proper display factors for SOM spreads - Fixed a bug that could cause a UI failure when trying to change settings in a synthetic ladder ## 2.8.1 ### Bug fixes - Fixed an error in the UI grids filtering widget ## 2.8.0 ### User Visible Changes - Added ProRata and Scratch algos - Ladder badge now grows/shrinks to fill the containing cell - Attached algo parameters are now displayed in the update panel - Fixed a bug where the update panel would show '-' values when only 1 order was selected - Fixed a bug that cause cause a failure on startup if the user loaded a workspace with a Ladder that had a dynamic order type selected by default - Increased width of login panel to better show login error messages - Added optional 'Maker/Taker' pricing to Spreader algo - Algo buttons in ladder can now be made to deactivate after launching an algo or remain 'sticky' ### Internal changes - Made it easier to generate simple UI's for new order types ### API Changes - Dynamic orders can now use QuantityMeasure parameter types ## 2.7.2 ### User Visible Changes - Changed the login dialog to avoid leaking workspace names from other users. - Added new Splitter algo. From the manual: The splitter is useful for pro-rata markets where you want to vary your exposure independent of the order quantity that you want to fill. The splitter will complete when the number of fills reaches or exceeds the order quantity but it will put exposed_qty total size on the market. Splitter favors order size over queue position. ### Internal Changes - Made spark more resilient to lack of connectivity to the CME web site for downloading of templates. ## 2.7.1 ### User Visible Changes - Fixed some issues with the Cover algo, where in some circumstances it would erroneously cancel launched hedges on completion. ## 2.7.0 ### User Visible Changes - Allowed algos to process "in-flight" fills while shutting down - Changed the cover algo to continue to hedge while shutting down ### API Changes - Changed the API so that algos do not fully terminate until all their children are terminated. Algos that are in the process of shutting down in response to a complete or cancel call will still receive child updates, which they can use to calculate and report an accurate fill count (during this shutdown stage algos cannot create, cancel or update children). A new IAlgoServices method, is_shutting_down(), can be used to determine if an algo is shutting down. ## 2.6.2 ### User Visible Changes - Fixed an issue in the ladder where in some cases the mini order book could not be brought up from a badge - Fixed a rare race condition that could lead to erroneous limit enforcement - Fixed an issue with the margin limits where an error could occur if an account name with more than 12 chars was used ## 2.6.1 ### User Visible Changes - Fixed an issue in the ladder where an error could occur when trying to change ladder settings for the first time ## 2.6.0 ### User Visible Changes - In the ladder made last trade more distinctive when overlayed on the volumn column - In the ladder, corrected display of volume tool tip - In the ladder, changed the consolidation of last trade to consider only the price ignoring aggressor changes - Added an option for the Top Algo to delete itself if within N ticks from top of book - Address a rare issue that could lead to an error report on UI exit - Added margin risk limits - Added the "Offset" algo. Offset prices a child algo at a parameterizable distance from the top of the book - Avoided switching the current account and order type on open ladders when limits are changed ### Internal Changes - Ensure that admin logins are always allowed to login, regardless of keycode status. ## 2.5.0 ### User Visible Changes - Added loss limit risk check - Made algos, synthetics and user names private so that multiple users can share a single system privately. - Allowed the mini order book defaults for column widths to be changed from the mini order book - Allowed the mini order book to shrink to the minimum size that will be needed to display the selected columns - Improved accuracy of the directional arrow when displaying last trades in the volumn column ## 2.4.0 ### User Visible Settings - In the ladder, changed the last trade column to accumulate successive trades at the same price - Fixed a bug in the order book where the right side ladder would display the top leve order's security rather then current row's - Added OK, Cancel buttons to the security picker for ladder profiles or sounds - Added ladder settings for the mini order book - Added a safety check to guard against unintentional market crosses - Improved the Queue Holder mode in the spreader: - Added a Show Quantity, allowing the spreader to keep queue position of the trailing orders as Fills (of size Show Qty) happen - Improved spreader performance when in Queue Holder mode ### Internal changes - Suppressed order callbacks for completed/canceled orders. This should eliminate some bogus error logs by spreader orders. - Addressed a potential concurrency issues with service initialization. ## 2.3.0 ### User Visible Changes - Introduced multiple settings profiles for the ladder - This allows multiple standard configuration for the ladder, optionally with security specific variations - Made Cover order more independent from its hedging chidren: - Cover continues to operate even if an hedging child is canceled - When a cover is canceled it will detach from any running hedging children, instead of canceling them - Changed Lean, Join and Cover algos to hide themselves in the ladder once they have completed their work - Changed manual fills to appear in day PnL rather than in the SOD records - Add buy/sell coloring to fill rows in fills window - Streamlined the mini order book: - Display of the mini order book popup is quicker - Only exchange orders are displayed - Update buttons are only displayed for orders that are under control of an algo with the update applying to the entire algo, not just the exchange order - We can now select multiple rows to attach, detach, update or cancel multiple orders in a batch - A checkbox column has been added to make clearer which rows are selected ### API Changes - Enhanced the API to allow algos to implement custom cancel handling - Allowed algos to control their visibility in the ladder through the API ### Internal Changes - Added system requirements to Spark documentation - Implemented keycodes - Temporarily rejected stop and stop limit orders, pending bug fixes ## 2.2.0 ### User Visible Changes - Made our orders easier to spot in MBO display - Changed middle-click on center column to recenter ladder and introduced Alt middle-click on center to bring up the MBO popup - Fixed Net/Absolute radio button in risk admin UI - Fixed double counting of spread legs in limits - Removed expired fills from the system - Improved handling of orders with undiscovered securities - Added feedback to the ladder when the user attempts to middle click on bid/ask columns using an order that does not have parameters - Fixed display of algo studio algo types in order book - Hid net change setting in synthetic ladders - Fixed a number of problems with filtering on the Fills form - On the Lean algo, OnToward and Away are now calculated with respect to the opposite inside market at time of the order launch - Iceberg Spreaders with queue holders are not erroneously cancelled after the first fill - Added security symbol column to fills window - Re-organized ladder settings dialog to make it clearer and easier to use ## 2.1.4 ### User Visible Changes - Fixed handling of cancel button in security picker ## 2.1.3 ### User Visible Changes - Fixed a simulator bug in the handling of 0 sized orders ## 2.2.1 ### User Visible Changes - Fixed order book form exception when display a spreader order for whichs the legs were not present yet ## 2.1.1 ### User Visible Changes - Added PIQ to GLBX Iceberg orders - Corrected handling of stop limit orders ## 2.1.0 ### User Visible Changes - Added support for the GLBX Iceberg order type - Allowed quick algo param edits by middle-clicking on either the bid/ask columns or a "favorite" button - Added support for manual fills, either entered manually or imported from file. Manual fills are used only for P&L purposes, they have no impact on limits - Allowed the LTQ and VAP values to be overlayed on the same ladder column - Added day position information to the ladder - Added PIQ to the mini order book - Fixed a rare bug that could lead to server failure when requesting market data - Fixed a bug that could cause incorrect price displays for certain types of synthetic securities ## 2.0.5 ### User Visible Changes - Fixed a bug in the handling of rejected QHO orders - Implemented stricter position limit enforcement - Fixed a bug that could cause server failure when trying to attach to already attached orders ## 2.0.4 ### User Visible Changes - Fixed performance regression in order manager ### Internal changes - Improved market data diagnostics for bad configurations - Changed market data default buffer size ## 2.0.3 ### Internal changes - Improved backwards compatibility in UI settings ## 2.0.2 ### User Visible Changes - Middle click the ladder price column to show the orders for that price level - Middle click the bid or ask column in the ladder no longer sends an order ### Internal changes - Improved market by order performance under heavy load - Fixed a concurrency bug in SIM ## 2.0.0 ### User Visible Changes - Support for attaching and detaching algos to existing orders - Support for display and update of all parameters in running algos - Streamlining of order badge decorations in ladder - New order search/filtering algorithm for order book - Simpler representation of complex algo chains in order book and mini order book - Visual and usability improvements to mini order book - Streamlining of algo parameter dialog in ladder - New spreader queue holder behavior - Visual improvements to the order book - New server side API - Improved admin UI performance - Optimized PIQ rendering ### Internal changes - Exchange simulator no longer requires daily sequence number reset - Improved MD resilience to corrupted shared memory - Native orders can now buffer updates/cancels when disconnected or pending first acknowledgment - Improved settings manager tool output - Added diagnostics in the event MD memory corruption is detected - Added systems tests for join,lean, iceberg and spreader orders - Made exchange order recovery more resilient in the presence of database loss ## 1.6.2 ### User Visible Changes ### Exchange simulator - Exchange simulator now now produce position in queue data ## 1.6.0 ### User Visible Changes #### New Features - You can now view your order's position in queue in the ladder #### Bug Fixes - Fix a bug in the order popup in the ladder which could lead to a crash. ## 1.5.9 ### User Visible Changes - Fix for stunnel connections on Windows 7 ## 1.5.8 ### User Visible Changes - Fixed a bug where it was possible to crash the UI by entering an order through the order ticket if Enter was used to dismiss the dialog. - Fixed a spreader reporting bug which could cause the server to crash if an algo was used to control certain types of synthetics - Improved user message when the UI fails to login - Integrated stunnel into UI to make VPN setup unnecessary in unsecured environments. ## 1.5.7 ### User Visible Changes - New videos have been added to the manual describing the [Algo Studio](./bts_spark/Trading/_index.md#algo-studio) and [Spreader](./bts_spark/Spreader/_index.md) - Fixed a bug that occasionally would cause windows to be position outside the visible screen on startup - Fixed a bug in the order book form that would occasionally cause the Recreate Order option to be unavailable - Added a confirmation step to Cancel All, Cancel Buys and Cancel Sells commands - Fixed Aggressor coloring and ladder high/low coloring in the SIM execution gateway - Added initial support for ICE market data - In an effort to streamline the PnL report we've made the following changes: - The PnL report will by default filter for Futures contracts only - If you wish to see Spread contracts again you may change Security Type column filter - The PnL report will now only show rows in which there is a position (net and/or day) - The Exchange, Start PnL, Total Net Pos, and Total Net PnL columns are now hidden by default - These columns can be restored by toggling their visibility within the PnL's Settings form - A new Traded Today column has been added to the PnL - Filtering on this column will allow a user to restrict the report to only show today's position ### Internal changes - Improved organization of the shell notification architecture - Added logging to help troubleshoot shell exit hang ## 1.5.6 ### User Visible Changes - Fixed a bug that could cause limits to be erroneously enforced - Improved algo documentation - Changed how the spreader uses net change - Simplified trigger algo user interface ### Internal changes - Defaulted to not recording sim market data - Improved documentation build - Added additional performance tracing ## 1.5.5 - Fixed Market View 'stale working orders' bug ## 1.5.4 - Avoided logging when warming up cache ## 1.5.3 - Fixed sounds startup issue ## 1.5.2 - Added better logging to AlgoDefinitionService ## 1.5.1 - Fixed missing securities in the Fills and P&L windows. ## 1.5.0 ### User Visible Changes #### New Features - This release introduces a major new feature, the Algo Studio, a set of tools allowing traders to create their own algos by composing existing algos to express unique strategies. #### User Interface Improvements - Removed security key field from most grids - Removed trade key field from time and sales grid - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed the floating order book so that rows are no longer highlighted after an order is modified - Relocated quantity and price columns in floating order book immediately after the cancel column; users now can move the mouse a much shorter distance when modifying their orders - The escape key now closes the floating order book #### Bug Fixes - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed a bug in the order book where sometimes parent orders would not update their last message column. #### Algos - Added OCO Algo - An OCO order creates a relationship between a child order and a 'stop' or 'other' order such that when one of these is cancelled, both cancel, or when one is filled, the other order's size is debited in the amount of the fill. Composing this order with Cover simulates scalping functionality #### SDK - Improved SDK documentation and usability - Dynamic orders are now properly identified in the order book #### Documentation - Information on the Spark API has been added to the Spark manual - The documentation has been updated and reorganized to make information easier to find ### Internal Changes - Improved robustness of limit system test - Fixed a bug in handling of built-in bts to user that could lead to failure to login as bts in old systems - Improved market data subsystem to support security definition updates - Fixed a startup race in market data that could lead to data corruption on startup - Increased default order price precision to 8 digis as required by some CME products ## 1.4.11 ### New Features - Floating Order Book - The floating order book provides a quick view of orders occupying a price level in the ladder - Launch the Floating Order Book by middle-clicking a ladder badge - Cancel orders by clicking on the red X in the Cancel column - Quantity and Price modification - Clicking on a row will select it, providing the option for changing your price and quantity - Enter in a new value or use the up/down buttons to set a desired value - Press the green checkbox to finalize your change and update the order ### SDK - Improved SDK documentation and usability ### User Interface Improvements - The following spreader quoting parameters have been deprecated: - Hidden parameter - Price Type setting of the Conditional parameter ### Bug Fixes - Fixed a limit enforcement problem that could lead to 0 sized orders being sent to the exchange ## 1.4.10 ### Bug Fixes - Removed duplicate entries in performance log ## 1.4.9 ### SDK - Added ticker events to the order API ### Performance Improvements - Significantly improved hedging speed ### Bug Fixes - Fixed a visual oddity in the order book UI when using High DPI displays ## 1.4.8 ### Marketdata - Additional trade details for CME ticker ## 1.4.7 ### Bug Fixes - Corrected FIX tag 1028, ManualOrderIndicator, when orders are triggered by algos ## 1.4.6 ### Ladder Usability Improvements - The ladder can now be zoomed in/out according to a user's preference - The zoom slider can be enabled from Ladder Form -> Settings button -> Left Pane tab -> check Zoom Slider checkbox - The zoom functionality can also be performed via hotkey and mouse wheel combinations - Zoom In = CTRL + Mouse wheel up - Zoom Out = CTRL + Mouse wheel down - Reset zoom = CTRL + Mouse wheel click or double click on the zoom slider ### Exchange simulator - Improved the exchange simulator to track real market data more closely ### Bug Fixes - Fixed a UI crash in some cases when attempting to sort the order book by time ## 1.4.5 - Fixed entitlement validation for ICS spreads - Tuned performance logging ## 1.4.4 ### Performance Improvements - Reduced performance logging activity ## 1.4.3 ### Ladder Usability Improvements - Controls found in Left Pane of the ladder can now be hidden via the checkboxes found under Ladder Form -> Settings button -> Left Pane tab - The Left Pane is now scrollable with the mouse wheel when there isn't enough vertical space to accomodate the entire form - The Left Pane can now grown and shrunk horizontally via the splitter between the left pane and the main ladder area ### Performance Improvements - Requoting and hedging latency has been reduced by up to 30% ### Software Development Kit (SDK) Improvements - The API now enforces authentication ### Bug Fixes - The Market View form now honors filters when new securities are added ## 1.4.2 ### User Interface Improvements - When creating a synthetic from the Market View window, securities are now added to the Create Synthetic dialog in the same sort order as they appear in grid ### Bug Fixes - Shell no longer crashes when removing a security from the synthetics window - It is now possible to create a new synthetic using the same name as a previously deleted synthetic ### SDK Improvements - Improved Client and Server SDK clarity and documentation ### Performance Improvements - Synthetic calculation speed was improved by 400%. ### Risk / Entitlement System - Risk Admin UI - Spark users now have separate Trading, RiskAdmin, and/or MDAdmin permissions - Spark users can now only add other users or accounts if permissioned to do so. - Market Data Entitlement - Automated market data reporting ## 1.4.1 ### Tabs - Tabs now shrink and expand to make better use of horizontal space ### Bug Fixes - Fixed a bug that could cause excessive CPU usage when a connection broke - Fixed a layout bug in hedging/requoting performance reports - Fixed account name mismatching bug for old fills ### Absolute Position limits - Positions can now be netted or absolute for purposes of limit enforcing ## 1.4.0 ### Speed Enhancements - Improved requoting and hedging performance - Improved order book form performance ### Server Side SDK - Added a beta version of the server side SDK ### Front End - Added status bars to all UI grids ### Reporting - Added reporting of hedging and requoting performance ## 1.3.8 ### Speed Enhancements - Further speed enhancements ### Conditional (new quoting parameter) - Reduces re-quoting updates by only quoting if N ticks away from the opposite inside market. - Quotes are canceled when it gets further away. - "Price Type" dictates if this logic applies to the quoting market or to the synthetic spread market. ## 1.3.7 ### Net Change pricing - The ability to price synthetics based off of net change ## 1.3.5 ### Speed Enhancements - Further speed enhancements ### Separation of implied and direct market data - Viewing within a market view will now show 3 columns - Direct - Implied - Merged - Ability to configure the market data size in a ladder as the following - Direct - Implied - Merged ### Synthetic creation option to choose Merged or Direct - The ability to choose Merged or Direct per leg when creating a synthetic ### Volume at price - Within a ladder, you can now see a volume at price graph - This is configurable from a ladder's settings as well ### Customized settings in all windows - All windows now contain a settings page where grid settings (font color, size, etc) are applied - These settings can be saved on a per-window basis or as a Default for newly-launched windows ## 1.3.1 Through 1.3.4 ### Speed Enhancements - Further speed enhancements ## 1.2 ### Market View - Synthetic future leg working orders are now shown ### Order Book - Many visual facets of the Order Book grid can now be customized - The Order Book settings page can be accessed from the gears icon in the Order Book toolbar or from the right-click menu - The Expand/Collapse All button has been separated into two different buttons on the toolbar ### Sound Alerts - Sounds alerts can now be configured for various order events - Configure sounds under the Sound/Notification Triggers on the Order Book settings page ### Fills - Newly launched fill windows will filter out start-of-day records by default ### PnL - Prices are now formatted with penny precision - Day PnL has been added to the Totals footer at the bottom of the window ### Ladder - Order badges now have been improved to communicate a variety of order state - Background color now indicates order side - Child orders will display a one-character abbreviation to their parent order enclosed in a rectangle; the rectangle will have a fill color matching the parent order - Border color around badge will match the associated algo color - Exchange orders will present with a solid dot in the badge's top-right corner - When multiple orders reside at the same level, a solid triangle will be present in badge's bottom-right corner; all other badge decorations will not be visible in this state - Hedge orders will present with a vertical line inside the badge's left border - Trigger orders, once triggered, will no longer be shown in the ladder - Session High and Low visual indicators have been added to the Price column - Session range is now indicated in the Price column - A button reflecting position has been added above the quantity field - This button reflects the position for the currently selected account - Pressing the button will copy the position size to the quantity field - Order quantity button size values are now customizable - Default size preset values can now be changed, as well as added or removed - This can be configured per ladder instance (i.e. per security) by making use of the Custom tab - Synthetic ladders that were saved as part of a workspace are now restored on startup ### Synthetics - Hedge Ratio parameter has been renamed to Lean Qty Factor - Spreader now includes a Hidden mode parameter - A quoting leg can be hidden, ie an order will not be sent out until the market crosses the computed quoting price. When that happens, the quote is sent out as an IOC order. ### Algos - Trigger orders now can contain a Trigger Exit parameter based on time or price; once the exit condition has been met the Trigger order will cancel - IOC/FAK order type added - Cover order type added - Canceling a synthetic order no longer cancels any working hedge orders ### General - A manual page has been added to the launcher Help menu - Various help buttons and tooltips were added throughout the application - Various cash per point values updated - Time-based grid filters now have tick up/down buttons - Numerous performance improvements and stability enhancements - Automated position and Order Book maintenance during daily recycle - Individual fills will be compacted into the Start of Day position records - Orders from the day before the recycle will be deleted ## 1.1 ### 1.1.22 - Order Book: Orders in Error status can now be recreated - Order Book: Orders containing child orders will now be collapsed by default. - Order Book: Expand / Collapse All button added to the right-click menu and window action pane, denoted by ▲ icon - Order Book: Symbol column added to allow for filtering based on group symbol - Time filters now have a quick Set Last Hour hyperlink which will set the Period Begin filter to (Now - 1 hour) ### 1.1.20 - Update CME market data handler for price precision extension. https://www.cmegroup.com/confluence/display/EPICSANDBOX/Price+Precision+Extension ### 1.1.8 - Enabled wild cards in risk management UI - Fixed spreader order updates ### 1.1.7 - Fixed spread leg price fill - Fixed HO cash per point value ### 1.1.6 - Fixed occasional crash when filtering fills - Fixed several cash per point multipliers - Colored time of sales row with aggressor side - Iceberg orders now cancel (rather than an error) when a child is canceled ### 1.1.0 - Added per user self match protection, location and self match protection FIX tag settings - Implemented a new "Trigger Order" algo - Corrected tick formatting for a number of products - Added the ability to recreate canceled orders - Added leg fills to facilitate futures based PnL - PnL report now has PnL columns calculated based on your Start of Day, current day, and total position - Start, Day and Total PnL columns are painted with a red or green background color based on if the pnl value is negative or positive respectively - Corrected cash per point values, used in pnl calculations, for a number of products - PnL report will now remember any customizations you make to filtering and/or sorting criteria \ No newline at end of file From 5a458287f4e579cfa2fb671baa8592d789b8a7af Mon Sep 17 00:00:00 2001 From: Eric Harding Date: Fri, 22 May 2020 15:18:46 -0400 Subject: [PATCH 08/23] update license search info in disable_onixs.py --- src/sdk/disable_onixs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk/disable_onixs.py b/src/sdk/disable_onixs.py index e9a64ff9e..4635b42c9 100644 --- a/src/sdk/disable_onixs.py +++ b/src/sdk/disable_onixs.py @@ -2,7 +2,7 @@ import sys f = open(sys.argv[1], 'rb+') -license = '5E50A1DACD94D7C1BECD316EEAE5AB02' +license = '1C9210495AA3C9C884B7A37A4C7AD8F9' data = f.read() match = data.find(license) if match > 0: From 4a7674eb29f6f9975d5deaa92a116c675cecd3e4 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 22 May 2020 18:15:53 -0500 Subject: [PATCH 09/23] synthetic gui supports integer tick sizes --- .../Spreader/ExecutionStrategyEditor.xaml | 44 +++++++++++++----- .../Spreader/ExecutionStrategyEditor.xaml.cs | 20 +++++++++ .../Modules/Spreader/SyntheticEditorView.xaml | 2 + .../Modules/Spreader/VM/SyntheticEditorVM.cs | 45 ++++++++++++++++--- .../core/GlobalExtensions/DoubleHelper.cs | 15 +++++++ .../Order/AlgoContentTemplateSelector.xaml | 2 + .../BooleanToVisibilityConverter.cs | 3 ++ src/client/spark/view/Spark/Core/TickUtils.cs | 22 +++++++++ 8 files changed, 138 insertions(+), 15 deletions(-) diff --git a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml index b45f13e04..07cae21ef 100644 --- a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml +++ b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml @@ -549,24 +549,48 @@ - - + + + fractional + + ) + + + > + + + GetValue(TickFactorsProperty) as TickFactors; set => SetValue(TickFactorsProperty, value); } #endregion + #region UseFractionalTicks + public static readonly DependencyProperty UseFractionalTicksProperty = WPFHelper.create_dp( + nameof(UseFractionalTicks), FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, true); + + public bool UseFractionalTicks { + get => (bool)GetValue(UseFractionalTicksProperty); + set => SetValue(UseFractionalTicksProperty, value); + } + #endregion + + #region IntegerTickSize + public static readonly DependencyProperty IntegerTickSizeProperty = WPFHelper.create_dp( + nameof(IntegerTickSize), FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, 1); + + public int IntegerTickSize { + get => (int)GetValue(IntegerTickSizeProperty); + set => SetValue(IntegerTickSizeProperty, value); + } + #endregion + #region IsNew public static readonly DependencyProperty IsNewProperty = DependencyProperty.Register( diff --git a/src/client/spark/Modules/Spreader/SyntheticEditorView.xaml b/src/client/spark/Modules/Spreader/SyntheticEditorView.xaml index 2bb8c16cf..910121358 100644 --- a/src/client/spark/Modules/Spreader/SyntheticEditorView.xaml +++ b/src/client/spark/Modules/Spreader/SyntheticEditorView.xaml @@ -36,6 +36,8 @@ ContractPickerModel="{Binding contract_picker_model}" HedgePricing="{Binding hedge_pricing}" HedgePricingItemsSource="{Binding hedge_pricing_options}" + UseFractionalTicks="{Binding use_fractional_ticks}" + IntegerTickSize="{Binding integer_tick_size}" /> diff --git a/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs b/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs index a99d8043f..ae1709683 100644 --- a/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs +++ b/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs @@ -2,7 +2,6 @@ using bts.collections; using bts.shell; using bts.spark; -using bts.utils; using mbts.ui; using mbts.ui.shell; using mbts.ui.spark; @@ -30,8 +29,16 @@ namespace mbts.spark { readonly Property _has_working_orders, _can_add_leg; Security _synthetic; - bool _set_name_automatically, _set_ticks_automatically, _set_quantities_automatically, _set_price_mults_automatically, _is_setting_quantities, _is_setting_price_mults; + bool + _set_name_automatically, + _set_ticks_automatically, + _set_quantities_automatically, + _set_price_mults_automatically, + _is_setting_quantities, + _is_setting_price_mults, + _use_fractional_ticks = true; TickFactors _tick_factors; + int _integer_tick_size = 1; ExecutionStrategyImmutable _strategy; HedgePricing _hedge_pricing; @@ -44,6 +51,10 @@ namespace mbts.spark { : this(synthetic, strategy, false) { ExceptionAssert.InvalidOperation.That(synthetic.Id != 0, "This constructor may only be used for already-existing synthetic securities (id must be non-zero)."); _tick_factors = TickUtils.get_regional_ticks(synthetic.ContractSpec).low_tick; + if (TickUtils.is_integer_tick(synthetic.ContractSpec)) { + _use_fractional_ticks = false; + _integer_tick_size = DoubleHelper.to_optional_int32(synthetic.ContractSpec.LowTick) ?? 0; + } title = $"Edit '{synthetic.Synthetic.Name}'"; icon = Icons.ModifySynthetic; _has_working_orders = backing(nameof(has_working_orders), security_has_working_orders.OnDispatcher()); @@ -131,14 +142,14 @@ namespace mbts.spark { flash_error_msg("Name already taken", SparkUtils.UI.MessageFlashDuration, nameof(name)).ignore(); valid = false; } - if (_tick_factors == null || !_tick_factors.is_valid()) { - flash_error_msg("Please select ticks", SparkUtils.UI.MessageFlashDuration, nameof(tick_factors)).ignore(); + if (use_fractional_ticks ? (_tick_factors == null || !_tick_factors.is_valid()) : integer_tick_size == 0) { + flash_error_msg("Please select ticks", SparkUtils.UI.MessageFlashDuration, use_fractional_ticks ? nameof(tick_factors) : nameof(integer_tick_size)).ignore(); valid = false; } if (valid) { _synthetic.Synthetic.Legs.SetItems(leg_tuples.Select(l => l.leg)); _synthetic.Symbol = _deduce_symbol(_synthetic); - _synthetic.ContractSpec = _tick_factors.to_spec(); + _synthetic.ContractSpec = use_fractional_ticks ? _tick_factors.to_spec() : TickUtils.create_integer_tick_spec(integer_tick_size); uint? id = await model.create_synthetic(new SecurityImmutable(_synthetic)); if (id.HasValue && id != 0) { if (await model.save_strategy(id.Value, get_strategy())) { @@ -295,6 +306,20 @@ namespace mbts.spark { public bool has_working_orders => _has_working_orders.Value; public bool is_new { get; } public bool is_new_leg_popup_open { get; set; } + public bool use_fractional_ticks { + get => _use_fractional_ticks; + set { + if (Set(ref _use_fractional_ticks, value)) + _set_ticks_automatically = false; + } + } + public int integer_tick_size { + get => _integer_tick_size; + set { + if (Set(ref _integer_tick_size, value)) + _set_ticks_automatically = false; + } + } public bool can_add_leg => _can_add_leg.Value; public SyntheticContract.Types.PriceCalc price_calc { get => _synthetic.Synthetic.PriceCalc; set => _synthetic.Synthetic.PriceCalc = value; } public ObservableCollection leg_tuples { get; } = new ObservableCollection(); @@ -323,6 +348,16 @@ namespace mbts.spark { _strategy = strategy; hedge_pricing = strategy.HedgePricing; leg_tuples.SetItems(_get_legs(_synthetic, strategy)); + if (synthetic.HasContractSpec) { + /// assign the fields and , + /// rather than the properties and + /// because the setters of the former flip to false if the value changes. + /// This behavior causes the ticks to be automatically deduced as legs are added/removed, + /// until the user explicitly enters a different value (as the properties are bound to tick input controls in the view). + Set(ref _use_fractional_ticks, !TickUtils.is_integer_tick(synthetic.ContractSpec), nameof(use_fractional_ticks)); + if (!use_fractional_ticks) + Set(ref _integer_tick_size, DoubleHelper.to_optional_int32(synthetic.ContractSpec.LowTick) ?? 0, nameof(integer_tick_size)); + } RaisePropertyChanged(nameof(name), nameof(tick_factors)); } diff --git a/src/client/spark/core/GlobalExtensions/DoubleHelper.cs b/src/client/spark/core/GlobalExtensions/DoubleHelper.cs index f4473b794..1f2b54713 100644 --- a/src/client/spark/core/GlobalExtensions/DoubleHelper.cs +++ b/src/client/spark/core/GlobalExtensions/DoubleHelper.cs @@ -63,5 +63,20 @@ namespace mbts { public static double? nan_nullable(double value) => double.IsNaN(value) ? (double?)null : value; + + public static int? to_optional_int32(double value) { + if (double.IsNaN(value) || double.IsInfinity(value)) + return null; + if (value > 0) { + value = Math.Floor(value); + if (value <= int.MaxValue) + return (int)value; + } else if (value < 0) { + value = Math.Ceiling(value); + if (value >= int.MinValue) + return (int)value; + } + return null; + } } } diff --git a/src/client/spark/view/Controls/Order/AlgoContentTemplateSelector.xaml b/src/client/spark/view/Controls/Order/AlgoContentTemplateSelector.xaml index 1a522bcce..914cc7097 100644 --- a/src/client/spark/view/Controls/Order/AlgoContentTemplateSelector.xaml +++ b/src/client/spark/view/Controls/Order/AlgoContentTemplateSelector.xaml @@ -1005,6 +1005,8 @@ ContractPickerModel="{Binding contract_picker_model}" HedgePricing="{Binding hedge_pricing}" HedgePricingItemsSource="{Binding hedge_pricing_options}" + UseFractionalTicks="{Binding use_fractional_ticks}" + IntegerTickSize="{Binding integer_tick_size}" /> diff --git a/src/client/spark/view/Converters/BooleanToVisibilityConverter.cs b/src/client/spark/view/Converters/BooleanToVisibilityConverter.cs index c42d1e0f6..6a4a95c15 100644 --- a/src/client/spark/view/Converters/BooleanToVisibilityConverter.cs +++ b/src/client/spark/view/Converters/BooleanToVisibilityConverter.cs @@ -12,6 +12,9 @@ namespace mbts.ui.converters public Visibility VisibilityForFalse { get { return _visfalse; } set { _visfalse = value; } } public static BooleanToVisibilityConverter Instance => new BooleanToVisibilityConverter(); + public static BooleanToVisibilityConverter HiddenInstance => new BooleanToVisibilityConverter { + VisibilityForFalse = Visibility.Hidden + }; public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { bool flag = false; diff --git a/src/client/spark/view/Spark/Core/TickUtils.cs b/src/client/spark/view/Spark/Core/TickUtils.cs index b420ea7b4..af1c1b184 100644 --- a/src/client/spark/view/Spark/Core/TickUtils.cs +++ b/src/client/spark/view/Spark/Core/TickUtils.cs @@ -49,6 +49,28 @@ namespace mbts.spark { public static double parse(this ContractSpecificationImmutable? spec, string text, double display_multiplier, string nan_text) => spec.spec_or_default().parse(text, display_multiplier, nan_text); + public static bool is_integer_tick(ContractSpecificationImmutable spec) => + spec.MainFraction == 0 && + spec.PriceDisplayFormat == 0 && + spec.LowTick > 0 && + MathUtils.is_int(spec.LowTick) && + spec.HighTick > 0 && + MathUtils.is_int(spec.HighTick); + + public static ContractSpecification create_integer_tick_spec(int low_tick) => + create_integer_tick_spec(low_tick, low_tick); + + public static ContractSpecification create_integer_tick_spec(int low_tick, int high_tick) { + var rv = SecurityDataHelper.Defaults.ContractSpecification; + rv.MainFraction = 0; + rv.SubFraction = 0; + rv.PriceDisplayFormat = 0; + rv.PriceBreak = 0; + rv.LowTick = low_tick; + rv.HighTick = high_tick; + return rv; + } + public static double low_tick(NativePriceSize[] bids, NativePriceSize[] asks) { double low = bids[bids.Length - 1].price; if (double.IsNaN(low)) From df5ad61cd205c8398cc76d3dcedc40de1cfb4c21 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 22 May 2020 19:12:29 -0500 Subject: [PATCH 10/23] release notes for synthetic gui integer tick sizes --- doc/user/content/release_notes/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/user/content/release_notes/_index.md b/doc/user/content/release_notes/_index.md index 9ebc4bfeb..812508cfd 100644 --- a/doc/user/content/release_notes/_index.md +++ b/doc/user/content/release_notes/_index.md @@ -1 +1 @@ -+++ title = "Release notes" weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ ## 2.16.1 ### Bug Fixes - OrderBook's algo state parameters (in the panel on the right side) are sorted alphabetically ## 2.15.10 ### Bug Fixes - Solved an issue that could cause the user interface to fail when playing some alert sounds ### API Changes - Added settlement and position information to the API - Added the ability for user algos to report custom state to the user interface - Added the ability for algos to discover all active securities ## 2.15.3 ### Bug Fixes - Fixed a bug where some CME currency spreads exhibited incorrect tick values ## 2.15.2 ### User Visible Changes - Excel RTD plugin can now receive ICE market data ## 2.15.1 ### Bug Fixes - Fixed a FIX log parsing issue that resulted in exchange gateway logon problems ## 2.15.0 ### User Visible Changes - Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message - Synthetic cloning now allows for any parameter to be changed, including tick size and leg contracts - Added ability to import synthetics from a CSV file; see our manual for further details on this process - Reduced Iceberg reloading latency ### Bug Fixes - Fixed a bug where highlighted fills could lose their highlight status - Fixed a bug where the (Mini) OrderBook PIQ could be displaying an old value ## 2.14.3 ### Bug Fixes - Fixed a bug regarding ICE logon messaging ## 2.14.2 ### Bug Fixes - Fixed a bug regarding ICE messaging ## 2.14.1 ### Bug Fixes - Fixed a bug regarding ICE logon authentication ## 2.14.0 ### User Visible Changes - All ladders can now be recentered by (shift or alt) + double clicking over the Price column in a ladder - Added a Max Order Quantity setting to the Safety Checks tab on the Ladder settings. This setting allows for a user-defined maximum order quantity. - Added a Price Display Format setting to the Market Price and Size Display tab on the Ladder settings. This setting allows for price levels in the ladder to be displayed without a decimal separator. - Synthetic instrument creation with 3 legs no longer defaults to butterfly quantites ### Bug Fixes - Fixed an issue where market transition were not observed by IAlgoOrder - Fixed a bug in error reporting - Fixed a bug in the PnL window where specifying a certain grouping order would lead to a UI failure ## 2.13.0 ### User Visible Changes - Added the name of the spreader to the parent algo badge (for spreader child orders), in the fills, orderbook and floating orderbook windows - Added support for sounds for new orders - Added a new quoting throttle parameter for the spreader, that throttles quotes that are moving toward the inside market but are still a configurable number of ticks away - Enabled the ladder to remember the left panel scroll position across front end restarts ### Bug Fixes - Fixed the local fills window so that it does not show the admin fills - Removed the deleted accounts from the ladder accounts dropdown - Fixed the orderbook price for iceberg of spreaders ## 2.12.0 ### User Visible Changes - Added support for ICE market data and order execution ### Internal Changes - Lots of permission / admin changes to facilitate ICE ## 2.11.0 ### User Visible Changes - Fixed fills form time filter to also apply to SOD fills - Addressed an issue that could prevent the web Admin UI from displaying over slow HTTP connections - Removed the option to enter manual spread fills - Fixed an issue that could cause erroneous fill account attribution in the event of a crash ### Internal Changes - Added support for tag 1031. Currently defaults to Y, can it be override through config. - To facilitate support, allowed the bts user to view and edit algos from all other users - Improved system tests - Improved log messages in UI to include dispatcher thread name - Added support for Windows core dumps in the UI ## 2.10.0 ### User Visible Changes - Fills now include information about the algo that originated the fill - A new, more powerful PnL form is now available ### API Changes - Added security state information (pre open, halted, normal, closed, etc) ### Bug Fixes - Brought back the "select all" check box in the mini order book - Fixed an issue in the market data subsystem that on rare occasions could result in a startup crash ### Internal Changes - Fixed an issue that was stopping us from interpreting SOD times as local rather than GMT ## 2.9.3 ### Internal Changes - Fixed system test scripts ## 2.9.2 ### Bug Fixes - Fixed an issue with the exchange simulator that could lead to crossed markets ## 2.9.1 ### Bug Fixes - Fixed an issue with trade sound alerts, where in some cases the use of a "In Between" condition could lead to a UI failure. - Fixed an issue with the display of the new raw position column in the market view window. - Fixed the popup label that describes the raw position information in the ladder ### Internal Changes - Avoided shipping production configuration defaults that lead to trying to download a position file for the development sftp server. ### Api - C# API sample now uses synchronous calls. ## 2.9.0 ### User Visible Changes - Improved Workspace management User Interface - Added the ability to change grid background colors - The Spark UI Window group now has a title in the Windows task bar - Added sound alerts for trade events, see Launcher -> Settings -> Alerts - Allowed composite algos that are attached to existing orders to identify fills that were already present prior to attachment - Added import facilities for GMI position files - Added the ability for risk managers to enter manual fills - Added "raw" P&L columns, that is columns that *do not* include spread legs in their accounting ### Bug Fixes - Fixed the settings action menu (Load/Save/Reset to Factory) - Fixed the method used to determine if a security is expired to take into account the start of day time ### API Changes - Fixed an issue in the Client SDK that could lead to occasional failures to connect to the spark server as well as excessive memory usage. - Added the ability for algo orders to distinguish fills existing prior to launch ### Internal Changes - Changed how we packaged certain third-party components - Added logging of entitlement status - Tagged outgoing orders with sequence number of marketdata or FIX event that triggered them ## 2.8.3 ### Bug Fixes - Fixed a bug that could cause an OrderBook's Security column filter to be blank - Fixed a bug that could cause a UI failure when clearing a filter selection on a filtering widget ## 2.8.2 ### Bug Fixes - Added proper display factors for SOM spreads - Fixed a bug that could cause a UI failure when trying to change settings in a synthetic ladder ## 2.8.1 ### Bug fixes - Fixed an error in the UI grids filtering widget ## 2.8.0 ### User Visible Changes - Added ProRata and Scratch algos - Ladder badge now grows/shrinks to fill the containing cell - Attached algo parameters are now displayed in the update panel - Fixed a bug where the update panel would show '-' values when only 1 order was selected - Fixed a bug that cause cause a failure on startup if the user loaded a workspace with a Ladder that had a dynamic order type selected by default - Increased width of login panel to better show login error messages - Added optional 'Maker/Taker' pricing to Spreader algo - Algo buttons in ladder can now be made to deactivate after launching an algo or remain 'sticky' ### Internal changes - Made it easier to generate simple UI's for new order types ### API Changes - Dynamic orders can now use QuantityMeasure parameter types ## 2.7.2 ### User Visible Changes - Changed the login dialog to avoid leaking workspace names from other users. - Added new Splitter algo. From the manual: The splitter is useful for pro-rata markets where you want to vary your exposure independent of the order quantity that you want to fill. The splitter will complete when the number of fills reaches or exceeds the order quantity but it will put exposed_qty total size on the market. Splitter favors order size over queue position. ### Internal Changes - Made spark more resilient to lack of connectivity to the CME web site for downloading of templates. ## 2.7.1 ### User Visible Changes - Fixed some issues with the Cover algo, where in some circumstances it would erroneously cancel launched hedges on completion. ## 2.7.0 ### User Visible Changes - Allowed algos to process "in-flight" fills while shutting down - Changed the cover algo to continue to hedge while shutting down ### API Changes - Changed the API so that algos do not fully terminate until all their children are terminated. Algos that are in the process of shutting down in response to a complete or cancel call will still receive child updates, which they can use to calculate and report an accurate fill count (during this shutdown stage algos cannot create, cancel or update children). A new IAlgoServices method, is_shutting_down(), can be used to determine if an algo is shutting down. ## 2.6.2 ### User Visible Changes - Fixed an issue in the ladder where in some cases the mini order book could not be brought up from a badge - Fixed a rare race condition that could lead to erroneous limit enforcement - Fixed an issue with the margin limits where an error could occur if an account name with more than 12 chars was used ## 2.6.1 ### User Visible Changes - Fixed an issue in the ladder where an error could occur when trying to change ladder settings for the first time ## 2.6.0 ### User Visible Changes - In the ladder made last trade more distinctive when overlayed on the volumn column - In the ladder, corrected display of volume tool tip - In the ladder, changed the consolidation of last trade to consider only the price ignoring aggressor changes - Added an option for the Top Algo to delete itself if within N ticks from top of book - Address a rare issue that could lead to an error report on UI exit - Added margin risk limits - Added the "Offset" algo. Offset prices a child algo at a parameterizable distance from the top of the book - Avoided switching the current account and order type on open ladders when limits are changed ### Internal Changes - Ensure that admin logins are always allowed to login, regardless of keycode status. ## 2.5.0 ### User Visible Changes - Added loss limit risk check - Made algos, synthetics and user names private so that multiple users can share a single system privately. - Allowed the mini order book defaults for column widths to be changed from the mini order book - Allowed the mini order book to shrink to the minimum size that will be needed to display the selected columns - Improved accuracy of the directional arrow when displaying last trades in the volumn column ## 2.4.0 ### User Visible Settings - In the ladder, changed the last trade column to accumulate successive trades at the same price - Fixed a bug in the order book where the right side ladder would display the top leve order's security rather then current row's - Added OK, Cancel buttons to the security picker for ladder profiles or sounds - Added ladder settings for the mini order book - Added a safety check to guard against unintentional market crosses - Improved the Queue Holder mode in the spreader: - Added a Show Quantity, allowing the spreader to keep queue position of the trailing orders as Fills (of size Show Qty) happen - Improved spreader performance when in Queue Holder mode ### Internal changes - Suppressed order callbacks for completed/canceled orders. This should eliminate some bogus error logs by spreader orders. - Addressed a potential concurrency issues with service initialization. ## 2.3.0 ### User Visible Changes - Introduced multiple settings profiles for the ladder - This allows multiple standard configuration for the ladder, optionally with security specific variations - Made Cover order more independent from its hedging chidren: - Cover continues to operate even if an hedging child is canceled - When a cover is canceled it will detach from any running hedging children, instead of canceling them - Changed Lean, Join and Cover algos to hide themselves in the ladder once they have completed their work - Changed manual fills to appear in day PnL rather than in the SOD records - Add buy/sell coloring to fill rows in fills window - Streamlined the mini order book: - Display of the mini order book popup is quicker - Only exchange orders are displayed - Update buttons are only displayed for orders that are under control of an algo with the update applying to the entire algo, not just the exchange order - We can now select multiple rows to attach, detach, update or cancel multiple orders in a batch - A checkbox column has been added to make clearer which rows are selected ### API Changes - Enhanced the API to allow algos to implement custom cancel handling - Allowed algos to control their visibility in the ladder through the API ### Internal Changes - Added system requirements to Spark documentation - Implemented keycodes - Temporarily rejected stop and stop limit orders, pending bug fixes ## 2.2.0 ### User Visible Changes - Made our orders easier to spot in MBO display - Changed middle-click on center column to recenter ladder and introduced Alt middle-click on center to bring up the MBO popup - Fixed Net/Absolute radio button in risk admin UI - Fixed double counting of spread legs in limits - Removed expired fills from the system - Improved handling of orders with undiscovered securities - Added feedback to the ladder when the user attempts to middle click on bid/ask columns using an order that does not have parameters - Fixed display of algo studio algo types in order book - Hid net change setting in synthetic ladders - Fixed a number of problems with filtering on the Fills form - On the Lean algo, OnToward and Away are now calculated with respect to the opposite inside market at time of the order launch - Iceberg Spreaders with queue holders are not erroneously cancelled after the first fill - Added security symbol column to fills window - Re-organized ladder settings dialog to make it clearer and easier to use ## 2.1.4 ### User Visible Changes - Fixed handling of cancel button in security picker ## 2.1.3 ### User Visible Changes - Fixed a simulator bug in the handling of 0 sized orders ## 2.2.1 ### User Visible Changes - Fixed order book form exception when display a spreader order for whichs the legs were not present yet ## 2.1.1 ### User Visible Changes - Added PIQ to GLBX Iceberg orders - Corrected handling of stop limit orders ## 2.1.0 ### User Visible Changes - Added support for the GLBX Iceberg order type - Allowed quick algo param edits by middle-clicking on either the bid/ask columns or a "favorite" button - Added support for manual fills, either entered manually or imported from file. Manual fills are used only for P&L purposes, they have no impact on limits - Allowed the LTQ and VAP values to be overlayed on the same ladder column - Added day position information to the ladder - Added PIQ to the mini order book - Fixed a rare bug that could lead to server failure when requesting market data - Fixed a bug that could cause incorrect price displays for certain types of synthetic securities ## 2.0.5 ### User Visible Changes - Fixed a bug in the handling of rejected QHO orders - Implemented stricter position limit enforcement - Fixed a bug that could cause server failure when trying to attach to already attached orders ## 2.0.4 ### User Visible Changes - Fixed performance regression in order manager ### Internal changes - Improved market data diagnostics for bad configurations - Changed market data default buffer size ## 2.0.3 ### Internal changes - Improved backwards compatibility in UI settings ## 2.0.2 ### User Visible Changes - Middle click the ladder price column to show the orders for that price level - Middle click the bid or ask column in the ladder no longer sends an order ### Internal changes - Improved market by order performance under heavy load - Fixed a concurrency bug in SIM ## 2.0.0 ### User Visible Changes - Support for attaching and detaching algos to existing orders - Support for display and update of all parameters in running algos - Streamlining of order badge decorations in ladder - New order search/filtering algorithm for order book - Simpler representation of complex algo chains in order book and mini order book - Visual and usability improvements to mini order book - Streamlining of algo parameter dialog in ladder - New spreader queue holder behavior - Visual improvements to the order book - New server side API - Improved admin UI performance - Optimized PIQ rendering ### Internal changes - Exchange simulator no longer requires daily sequence number reset - Improved MD resilience to corrupted shared memory - Native orders can now buffer updates/cancels when disconnected or pending first acknowledgment - Improved settings manager tool output - Added diagnostics in the event MD memory corruption is detected - Added systems tests for join,lean, iceberg and spreader orders - Made exchange order recovery more resilient in the presence of database loss ## 1.6.2 ### User Visible Changes ### Exchange simulator - Exchange simulator now now produce position in queue data ## 1.6.0 ### User Visible Changes #### New Features - You can now view your order's position in queue in the ladder #### Bug Fixes - Fix a bug in the order popup in the ladder which could lead to a crash. ## 1.5.9 ### User Visible Changes - Fix for stunnel connections on Windows 7 ## 1.5.8 ### User Visible Changes - Fixed a bug where it was possible to crash the UI by entering an order through the order ticket if Enter was used to dismiss the dialog. - Fixed a spreader reporting bug which could cause the server to crash if an algo was used to control certain types of synthetics - Improved user message when the UI fails to login - Integrated stunnel into UI to make VPN setup unnecessary in unsecured environments. ## 1.5.7 ### User Visible Changes - New videos have been added to the manual describing the [Algo Studio](./bts_spark/Trading/_index.md#algo-studio) and [Spreader](./bts_spark/Spreader/_index.md) - Fixed a bug that occasionally would cause windows to be position outside the visible screen on startup - Fixed a bug in the order book form that would occasionally cause the Recreate Order option to be unavailable - Added a confirmation step to Cancel All, Cancel Buys and Cancel Sells commands - Fixed Aggressor coloring and ladder high/low coloring in the SIM execution gateway - Added initial support for ICE market data - In an effort to streamline the PnL report we've made the following changes: - The PnL report will by default filter for Futures contracts only - If you wish to see Spread contracts again you may change Security Type column filter - The PnL report will now only show rows in which there is a position (net and/or day) - The Exchange, Start PnL, Total Net Pos, and Total Net PnL columns are now hidden by default - These columns can be restored by toggling their visibility within the PnL's Settings form - A new Traded Today column has been added to the PnL - Filtering on this column will allow a user to restrict the report to only show today's position ### Internal changes - Improved organization of the shell notification architecture - Added logging to help troubleshoot shell exit hang ## 1.5.6 ### User Visible Changes - Fixed a bug that could cause limits to be erroneously enforced - Improved algo documentation - Changed how the spreader uses net change - Simplified trigger algo user interface ### Internal changes - Defaulted to not recording sim market data - Improved documentation build - Added additional performance tracing ## 1.5.5 - Fixed Market View 'stale working orders' bug ## 1.5.4 - Avoided logging when warming up cache ## 1.5.3 - Fixed sounds startup issue ## 1.5.2 - Added better logging to AlgoDefinitionService ## 1.5.1 - Fixed missing securities in the Fills and P&L windows. ## 1.5.0 ### User Visible Changes #### New Features - This release introduces a major new feature, the Algo Studio, a set of tools allowing traders to create their own algos by composing existing algos to express unique strategies. #### User Interface Improvements - Removed security key field from most grids - Removed trade key field from time and sales grid - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed the floating order book so that rows are no longer highlighted after an order is modified - Relocated quantity and price columns in floating order book immediately after the cancel column; users now can move the mouse a much shorter distance when modifying their orders - The escape key now closes the floating order book #### Bug Fixes - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed a bug in the order book where sometimes parent orders would not update their last message column. #### Algos - Added OCO Algo - An OCO order creates a relationship between a child order and a 'stop' or 'other' order such that when one of these is cancelled, both cancel, or when one is filled, the other order's size is debited in the amount of the fill. Composing this order with Cover simulates scalping functionality #### SDK - Improved SDK documentation and usability - Dynamic orders are now properly identified in the order book #### Documentation - Information on the Spark API has been added to the Spark manual - The documentation has been updated and reorganized to make information easier to find ### Internal Changes - Improved robustness of limit system test - Fixed a bug in handling of built-in bts to user that could lead to failure to login as bts in old systems - Improved market data subsystem to support security definition updates - Fixed a startup race in market data that could lead to data corruption on startup - Increased default order price precision to 8 digis as required by some CME products ## 1.4.11 ### New Features - Floating Order Book - The floating order book provides a quick view of orders occupying a price level in the ladder - Launch the Floating Order Book by middle-clicking a ladder badge - Cancel orders by clicking on the red X in the Cancel column - Quantity and Price modification - Clicking on a row will select it, providing the option for changing your price and quantity - Enter in a new value or use the up/down buttons to set a desired value - Press the green checkbox to finalize your change and update the order ### SDK - Improved SDK documentation and usability ### User Interface Improvements - The following spreader quoting parameters have been deprecated: - Hidden parameter - Price Type setting of the Conditional parameter ### Bug Fixes - Fixed a limit enforcement problem that could lead to 0 sized orders being sent to the exchange ## 1.4.10 ### Bug Fixes - Removed duplicate entries in performance log ## 1.4.9 ### SDK - Added ticker events to the order API ### Performance Improvements - Significantly improved hedging speed ### Bug Fixes - Fixed a visual oddity in the order book UI when using High DPI displays ## 1.4.8 ### Marketdata - Additional trade details for CME ticker ## 1.4.7 ### Bug Fixes - Corrected FIX tag 1028, ManualOrderIndicator, when orders are triggered by algos ## 1.4.6 ### Ladder Usability Improvements - The ladder can now be zoomed in/out according to a user's preference - The zoom slider can be enabled from Ladder Form -> Settings button -> Left Pane tab -> check Zoom Slider checkbox - The zoom functionality can also be performed via hotkey and mouse wheel combinations - Zoom In = CTRL + Mouse wheel up - Zoom Out = CTRL + Mouse wheel down - Reset zoom = CTRL + Mouse wheel click or double click on the zoom slider ### Exchange simulator - Improved the exchange simulator to track real market data more closely ### Bug Fixes - Fixed a UI crash in some cases when attempting to sort the order book by time ## 1.4.5 - Fixed entitlement validation for ICS spreads - Tuned performance logging ## 1.4.4 ### Performance Improvements - Reduced performance logging activity ## 1.4.3 ### Ladder Usability Improvements - Controls found in Left Pane of the ladder can now be hidden via the checkboxes found under Ladder Form -> Settings button -> Left Pane tab - The Left Pane is now scrollable with the mouse wheel when there isn't enough vertical space to accomodate the entire form - The Left Pane can now grown and shrunk horizontally via the splitter between the left pane and the main ladder area ### Performance Improvements - Requoting and hedging latency has been reduced by up to 30% ### Software Development Kit (SDK) Improvements - The API now enforces authentication ### Bug Fixes - The Market View form now honors filters when new securities are added ## 1.4.2 ### User Interface Improvements - When creating a synthetic from the Market View window, securities are now added to the Create Synthetic dialog in the same sort order as they appear in grid ### Bug Fixes - Shell no longer crashes when removing a security from the synthetics window - It is now possible to create a new synthetic using the same name as a previously deleted synthetic ### SDK Improvements - Improved Client and Server SDK clarity and documentation ### Performance Improvements - Synthetic calculation speed was improved by 400%. ### Risk / Entitlement System - Risk Admin UI - Spark users now have separate Trading, RiskAdmin, and/or MDAdmin permissions - Spark users can now only add other users or accounts if permissioned to do so. - Market Data Entitlement - Automated market data reporting ## 1.4.1 ### Tabs - Tabs now shrink and expand to make better use of horizontal space ### Bug Fixes - Fixed a bug that could cause excessive CPU usage when a connection broke - Fixed a layout bug in hedging/requoting performance reports - Fixed account name mismatching bug for old fills ### Absolute Position limits - Positions can now be netted or absolute for purposes of limit enforcing ## 1.4.0 ### Speed Enhancements - Improved requoting and hedging performance - Improved order book form performance ### Server Side SDK - Added a beta version of the server side SDK ### Front End - Added status bars to all UI grids ### Reporting - Added reporting of hedging and requoting performance ## 1.3.8 ### Speed Enhancements - Further speed enhancements ### Conditional (new quoting parameter) - Reduces re-quoting updates by only quoting if N ticks away from the opposite inside market. - Quotes are canceled when it gets further away. - "Price Type" dictates if this logic applies to the quoting market or to the synthetic spread market. ## 1.3.7 ### Net Change pricing - The ability to price synthetics based off of net change ## 1.3.5 ### Speed Enhancements - Further speed enhancements ### Separation of implied and direct market data - Viewing within a market view will now show 3 columns - Direct - Implied - Merged - Ability to configure the market data size in a ladder as the following - Direct - Implied - Merged ### Synthetic creation option to choose Merged or Direct - The ability to choose Merged or Direct per leg when creating a synthetic ### Volume at price - Within a ladder, you can now see a volume at price graph - This is configurable from a ladder's settings as well ### Customized settings in all windows - All windows now contain a settings page where grid settings (font color, size, etc) are applied - These settings can be saved on a per-window basis or as a Default for newly-launched windows ## 1.3.1 Through 1.3.4 ### Speed Enhancements - Further speed enhancements ## 1.2 ### Market View - Synthetic future leg working orders are now shown ### Order Book - Many visual facets of the Order Book grid can now be customized - The Order Book settings page can be accessed from the gears icon in the Order Book toolbar or from the right-click menu - The Expand/Collapse All button has been separated into two different buttons on the toolbar ### Sound Alerts - Sounds alerts can now be configured for various order events - Configure sounds under the Sound/Notification Triggers on the Order Book settings page ### Fills - Newly launched fill windows will filter out start-of-day records by default ### PnL - Prices are now formatted with penny precision - Day PnL has been added to the Totals footer at the bottom of the window ### Ladder - Order badges now have been improved to communicate a variety of order state - Background color now indicates order side - Child orders will display a one-character abbreviation to their parent order enclosed in a rectangle; the rectangle will have a fill color matching the parent order - Border color around badge will match the associated algo color - Exchange orders will present with a solid dot in the badge's top-right corner - When multiple orders reside at the same level, a solid triangle will be present in badge's bottom-right corner; all other badge decorations will not be visible in this state - Hedge orders will present with a vertical line inside the badge's left border - Trigger orders, once triggered, will no longer be shown in the ladder - Session High and Low visual indicators have been added to the Price column - Session range is now indicated in the Price column - A button reflecting position has been added above the quantity field - This button reflects the position for the currently selected account - Pressing the button will copy the position size to the quantity field - Order quantity button size values are now customizable - Default size preset values can now be changed, as well as added or removed - This can be configured per ladder instance (i.e. per security) by making use of the Custom tab - Synthetic ladders that were saved as part of a workspace are now restored on startup ### Synthetics - Hedge Ratio parameter has been renamed to Lean Qty Factor - Spreader now includes a Hidden mode parameter - A quoting leg can be hidden, ie an order will not be sent out until the market crosses the computed quoting price. When that happens, the quote is sent out as an IOC order. ### Algos - Trigger orders now can contain a Trigger Exit parameter based on time or price; once the exit condition has been met the Trigger order will cancel - IOC/FAK order type added - Cover order type added - Canceling a synthetic order no longer cancels any working hedge orders ### General - A manual page has been added to the launcher Help menu - Various help buttons and tooltips were added throughout the application - Various cash per point values updated - Time-based grid filters now have tick up/down buttons - Numerous performance improvements and stability enhancements - Automated position and Order Book maintenance during daily recycle - Individual fills will be compacted into the Start of Day position records - Orders from the day before the recycle will be deleted ## 1.1 ### 1.1.22 - Order Book: Orders in Error status can now be recreated - Order Book: Orders containing child orders will now be collapsed by default. - Order Book: Expand / Collapse All button added to the right-click menu and window action pane, denoted by ▲ icon - Order Book: Symbol column added to allow for filtering based on group symbol - Time filters now have a quick Set Last Hour hyperlink which will set the Period Begin filter to (Now - 1 hour) ### 1.1.20 - Update CME market data handler for price precision extension. https://www.cmegroup.com/confluence/display/EPICSANDBOX/Price+Precision+Extension ### 1.1.8 - Enabled wild cards in risk management UI - Fixed spreader order updates ### 1.1.7 - Fixed spread leg price fill - Fixed HO cash per point value ### 1.1.6 - Fixed occasional crash when filtering fills - Fixed several cash per point multipliers - Colored time of sales row with aggressor side - Iceberg orders now cancel (rather than an error) when a child is canceled ### 1.1.0 - Added per user self match protection, location and self match protection FIX tag settings - Implemented a new "Trigger Order" algo - Corrected tick formatting for a number of products - Added the ability to recreate canceled orders - Added leg fills to facilitate futures based PnL - PnL report now has PnL columns calculated based on your Start of Day, current day, and total position - Start, Day and Total PnL columns are painted with a red or green background color based on if the pnl value is negative or positive respectively - Corrected cash per point values, used in pnl calculations, for a number of products - PnL report will now remember any customizations you make to filtering and/or sorting criteria \ No newline at end of file ++++ title = "Release notes" weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ ## 2.16.2 ### User Visible Change - Synthetic creation dialog has a "fractional" checkbox next to the tick settings. Users may uncheck this box to enter integer tick sizes, so the synthetic security's prices will be displayed without decimals, or fractional units. ## 2.16.1 ### Bug Fixes - OrderBook's algo state parameters (in the panel on the right side) are sorted alphabetically ## 2.15.10 ### Bug Fixes - Solved an issue that could cause the user interface to fail when playing some alert sounds ### API Changes - Added settlement and position information to the API - Added the ability for user algos to report custom state to the user interface - Added the ability for algos to discover all active securities ## 2.15.3 ### Bug Fixes - Fixed a bug where some CME currency spreads exhibited incorrect tick values ## 2.15.2 ### User Visible Changes - Excel RTD plugin can now receive ICE market data ## 2.15.1 ### Bug Fixes - Fixed a FIX log parsing issue that resulted in exchange gateway logon problems ## 2.15.0 ### User Visible Changes - Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message - Synthetic cloning now allows for any parameter to be changed, including tick size and leg contracts - Added ability to import synthetics from a CSV file; see our manual for further details on this process - Reduced Iceberg reloading latency ### Bug Fixes - Fixed a bug where highlighted fills could lose their highlight status - Fixed a bug where the (Mini) OrderBook PIQ could be displaying an old value ## 2.14.3 ### Bug Fixes - Fixed a bug regarding ICE logon messaging ## 2.14.2 ### Bug Fixes - Fixed a bug regarding ICE messaging ## 2.14.1 ### Bug Fixes - Fixed a bug regarding ICE logon authentication ## 2.14.0 ### User Visible Changes - All ladders can now be recentered by (shift or alt) + double clicking over the Price column in a ladder - Added a Max Order Quantity setting to the Safety Checks tab on the Ladder settings. This setting allows for a user-defined maximum order quantity. - Added a Price Display Format setting to the Market Price and Size Display tab on the Ladder settings. This setting allows for price levels in the ladder to be displayed without a decimal separator. - Synthetic instrument creation with 3 legs no longer defaults to butterfly quantites ### Bug Fixes - Fixed an issue where market transition were not observed by IAlgoOrder - Fixed a bug in error reporting - Fixed a bug in the PnL window where specifying a certain grouping order would lead to a UI failure ## 2.13.0 ### User Visible Changes - Added the name of the spreader to the parent algo badge (for spreader child orders), in the fills, orderbook and floating orderbook windows - Added support for sounds for new orders - Added a new quoting throttle parameter for the spreader, that throttles quotes that are moving toward the inside market but are still a configurable number of ticks away - Enabled the ladder to remember the left panel scroll position across front end restarts ### Bug Fixes - Fixed the local fills window so that it does not show the admin fills - Removed the deleted accounts from the ladder accounts dropdown - Fixed the orderbook price for iceberg of spreaders ## 2.12.0 ### User Visible Changes - Added support for ICE market data and order execution ### Internal Changes - Lots of permission / admin changes to facilitate ICE ## 2.11.0 ### User Visible Changes - Fixed fills form time filter to also apply to SOD fills - Addressed an issue that could prevent the web Admin UI from displaying over slow HTTP connections - Removed the option to enter manual spread fills - Fixed an issue that could cause erroneous fill account attribution in the event of a crash ### Internal Changes - Added support for tag 1031. Currently defaults to Y, can it be override through config. - To facilitate support, allowed the bts user to view and edit algos from all other users - Improved system tests - Improved log messages in UI to include dispatcher thread name - Added support for Windows core dumps in the UI ## 2.10.0 ### User Visible Changes - Fills now include information about the algo that originated the fill - A new, more powerful PnL form is now available ### API Changes - Added security state information (pre open, halted, normal, closed, etc) ### Bug Fixes - Brought back the "select all" check box in the mini order book - Fixed an issue in the market data subsystem that on rare occasions could result in a startup crash ### Internal Changes - Fixed an issue that was stopping us from interpreting SOD times as local rather than GMT ## 2.9.3 ### Internal Changes - Fixed system test scripts ## 2.9.2 ### Bug Fixes - Fixed an issue with the exchange simulator that could lead to crossed markets ## 2.9.1 ### Bug Fixes - Fixed an issue with trade sound alerts, where in some cases the use of a "In Between" condition could lead to a UI failure. - Fixed an issue with the display of the new raw position column in the market view window. - Fixed the popup label that describes the raw position information in the ladder ### Internal Changes - Avoided shipping production configuration defaults that lead to trying to download a position file for the development sftp server. ### Api - C# API sample now uses synchronous calls. ## 2.9.0 ### User Visible Changes - Improved Workspace management User Interface - Added the ability to change grid background colors - The Spark UI Window group now has a title in the Windows task bar - Added sound alerts for trade events, see Launcher -> Settings -> Alerts - Allowed composite algos that are attached to existing orders to identify fills that were already present prior to attachment - Added import facilities for GMI position files - Added the ability for risk managers to enter manual fills - Added "raw" P&L columns, that is columns that *do not* include spread legs in their accounting ### Bug Fixes - Fixed the settings action menu (Load/Save/Reset to Factory) - Fixed the method used to determine if a security is expired to take into account the start of day time ### API Changes - Fixed an issue in the Client SDK that could lead to occasional failures to connect to the spark server as well as excessive memory usage. - Added the ability for algo orders to distinguish fills existing prior to launch ### Internal Changes - Changed how we packaged certain third-party components - Added logging of entitlement status - Tagged outgoing orders with sequence number of marketdata or FIX event that triggered them ## 2.8.3 ### Bug Fixes - Fixed a bug that could cause an OrderBook's Security column filter to be blank - Fixed a bug that could cause a UI failure when clearing a filter selection on a filtering widget ## 2.8.2 ### Bug Fixes - Added proper display factors for SOM spreads - Fixed a bug that could cause a UI failure when trying to change settings in a synthetic ladder ## 2.8.1 ### Bug fixes - Fixed an error in the UI grids filtering widget ## 2.8.0 ### User Visible Changes - Added ProRata and Scratch algos - Ladder badge now grows/shrinks to fill the containing cell - Attached algo parameters are now displayed in the update panel - Fixed a bug where the update panel would show '-' values when only 1 order was selected - Fixed a bug that cause cause a failure on startup if the user loaded a workspace with a Ladder that had a dynamic order type selected by default - Increased width of login panel to better show login error messages - Added optional 'Maker/Taker' pricing to Spreader algo - Algo buttons in ladder can now be made to deactivate after launching an algo or remain 'sticky' ### Internal changes - Made it easier to generate simple UI's for new order types ### API Changes - Dynamic orders can now use QuantityMeasure parameter types ## 2.7.2 ### User Visible Changes - Changed the login dialog to avoid leaking workspace names from other users. - Added new Splitter algo. From the manual: The splitter is useful for pro-rata markets where you want to vary your exposure independent of the order quantity that you want to fill. The splitter will complete when the number of fills reaches or exceeds the order quantity but it will put exposed_qty total size on the market. Splitter favors order size over queue position. ### Internal Changes - Made spark more resilient to lack of connectivity to the CME web site for downloading of templates. ## 2.7.1 ### User Visible Changes - Fixed some issues with the Cover algo, where in some circumstances it would erroneously cancel launched hedges on completion. ## 2.7.0 ### User Visible Changes - Allowed algos to process "in-flight" fills while shutting down - Changed the cover algo to continue to hedge while shutting down ### API Changes - Changed the API so that algos do not fully terminate until all their children are terminated. Algos that are in the process of shutting down in response to a complete or cancel call will still receive child updates, which they can use to calculate and report an accurate fill count (during this shutdown stage algos cannot create, cancel or update children). A new IAlgoServices method, is_shutting_down(), can be used to determine if an algo is shutting down. ## 2.6.2 ### User Visible Changes - Fixed an issue in the ladder where in some cases the mini order book could not be brought up from a badge - Fixed a rare race condition that could lead to erroneous limit enforcement - Fixed an issue with the margin limits where an error could occur if an account name with more than 12 chars was used ## 2.6.1 ### User Visible Changes - Fixed an issue in the ladder where an error could occur when trying to change ladder settings for the first time ## 2.6.0 ### User Visible Changes - In the ladder made last trade more distinctive when overlayed on the volumn column - In the ladder, corrected display of volume tool tip - In the ladder, changed the consolidation of last trade to consider only the price ignoring aggressor changes - Added an option for the Top Algo to delete itself if within N ticks from top of book - Address a rare issue that could lead to an error report on UI exit - Added margin risk limits - Added the "Offset" algo. Offset prices a child algo at a parameterizable distance from the top of the book - Avoided switching the current account and order type on open ladders when limits are changed ### Internal Changes - Ensure that admin logins are always allowed to login, regardless of keycode status. ## 2.5.0 ### User Visible Changes - Added loss limit risk check - Made algos, synthetics and user names private so that multiple users can share a single system privately. - Allowed the mini order book defaults for column widths to be changed from the mini order book - Allowed the mini order book to shrink to the minimum size that will be needed to display the selected columns - Improved accuracy of the directional arrow when displaying last trades in the volumn column ## 2.4.0 ### User Visible Settings - In the ladder, changed the last trade column to accumulate successive trades at the same price - Fixed a bug in the order book where the right side ladder would display the top leve order's security rather then current row's - Added OK, Cancel buttons to the security picker for ladder profiles or sounds - Added ladder settings for the mini order book - Added a safety check to guard against unintentional market crosses - Improved the Queue Holder mode in the spreader: - Added a Show Quantity, allowing the spreader to keep queue position of the trailing orders as Fills (of size Show Qty) happen - Improved spreader performance when in Queue Holder mode ### Internal changes - Suppressed order callbacks for completed/canceled orders. This should eliminate some bogus error logs by spreader orders. - Addressed a potential concurrency issues with service initialization. ## 2.3.0 ### User Visible Changes - Introduced multiple settings profiles for the ladder - This allows multiple standard configuration for the ladder, optionally with security specific variations - Made Cover order more independent from its hedging chidren: - Cover continues to operate even if an hedging child is canceled - When a cover is canceled it will detach from any running hedging children, instead of canceling them - Changed Lean, Join and Cover algos to hide themselves in the ladder once they have completed their work - Changed manual fills to appear in day PnL rather than in the SOD records - Add buy/sell coloring to fill rows in fills window - Streamlined the mini order book: - Display of the mini order book popup is quicker - Only exchange orders are displayed - Update buttons are only displayed for orders that are under control of an algo with the update applying to the entire algo, not just the exchange order - We can now select multiple rows to attach, detach, update or cancel multiple orders in a batch - A checkbox column has been added to make clearer which rows are selected ### API Changes - Enhanced the API to allow algos to implement custom cancel handling - Allowed algos to control their visibility in the ladder through the API ### Internal Changes - Added system requirements to Spark documentation - Implemented keycodes - Temporarily rejected stop and stop limit orders, pending bug fixes ## 2.2.0 ### User Visible Changes - Made our orders easier to spot in MBO display - Changed middle-click on center column to recenter ladder and introduced Alt middle-click on center to bring up the MBO popup - Fixed Net/Absolute radio button in risk admin UI - Fixed double counting of spread legs in limits - Removed expired fills from the system - Improved handling of orders with undiscovered securities - Added feedback to the ladder when the user attempts to middle click on bid/ask columns using an order that does not have parameters - Fixed display of algo studio algo types in order book - Hid net change setting in synthetic ladders - Fixed a number of problems with filtering on the Fills form - On the Lean algo, OnToward and Away are now calculated with respect to the opposite inside market at time of the order launch - Iceberg Spreaders with queue holders are not erroneously cancelled after the first fill - Added security symbol column to fills window - Re-organized ladder settings dialog to make it clearer and easier to use ## 2.1.4 ### User Visible Changes - Fixed handling of cancel button in security picker ## 2.1.3 ### User Visible Changes - Fixed a simulator bug in the handling of 0 sized orders ## 2.2.1 ### User Visible Changes - Fixed order book form exception when display a spreader order for whichs the legs were not present yet ## 2.1.1 ### User Visible Changes - Added PIQ to GLBX Iceberg orders - Corrected handling of stop limit orders ## 2.1.0 ### User Visible Changes - Added support for the GLBX Iceberg order type - Allowed quick algo param edits by middle-clicking on either the bid/ask columns or a "favorite" button - Added support for manual fills, either entered manually or imported from file. Manual fills are used only for P&L purposes, they have no impact on limits - Allowed the LTQ and VAP values to be overlayed on the same ladder column - Added day position information to the ladder - Added PIQ to the mini order book - Fixed a rare bug that could lead to server failure when requesting market data - Fixed a bug that could cause incorrect price displays for certain types of synthetic securities ## 2.0.5 ### User Visible Changes - Fixed a bug in the handling of rejected QHO orders - Implemented stricter position limit enforcement - Fixed a bug that could cause server failure when trying to attach to already attached orders ## 2.0.4 ### User Visible Changes - Fixed performance regression in order manager ### Internal changes - Improved market data diagnostics for bad configurations - Changed market data default buffer size ## 2.0.3 ### Internal changes - Improved backwards compatibility in UI settings ## 2.0.2 ### User Visible Changes - Middle click the ladder price column to show the orders for that price level - Middle click the bid or ask column in the ladder no longer sends an order ### Internal changes - Improved market by order performance under heavy load - Fixed a concurrency bug in SIM ## 2.0.0 ### User Visible Changes - Support for attaching and detaching algos to existing orders - Support for display and update of all parameters in running algos - Streamlining of order badge decorations in ladder - New order search/filtering algorithm for order book - Simpler representation of complex algo chains in order book and mini order book - Visual and usability improvements to mini order book - Streamlining of algo parameter dialog in ladder - New spreader queue holder behavior - Visual improvements to the order book - New server side API - Improved admin UI performance - Optimized PIQ rendering ### Internal changes - Exchange simulator no longer requires daily sequence number reset - Improved MD resilience to corrupted shared memory - Native orders can now buffer updates/cancels when disconnected or pending first acknowledgment - Improved settings manager tool output - Added diagnostics in the event MD memory corruption is detected - Added systems tests for join,lean, iceberg and spreader orders - Made exchange order recovery more resilient in the presence of database loss ## 1.6.2 ### User Visible Changes ### Exchange simulator - Exchange simulator now now produce position in queue data ## 1.6.0 ### User Visible Changes #### New Features - You can now view your order's position in queue in the ladder #### Bug Fixes - Fix a bug in the order popup in the ladder which could lead to a crash. ## 1.5.9 ### User Visible Changes - Fix for stunnel connections on Windows 7 ## 1.5.8 ### User Visible Changes - Fixed a bug where it was possible to crash the UI by entering an order through the order ticket if Enter was used to dismiss the dialog. - Fixed a spreader reporting bug which could cause the server to crash if an algo was used to control certain types of synthetics - Improved user message when the UI fails to login - Integrated stunnel into UI to make VPN setup unnecessary in unsecured environments. ## 1.5.7 ### User Visible Changes - New videos have been added to the manual describing the [Algo Studio](./bts_spark/Trading/_index.md#algo-studio) and [Spreader](./bts_spark/Spreader/_index.md) - Fixed a bug that occasionally would cause windows to be position outside the visible screen on startup - Fixed a bug in the order book form that would occasionally cause the Recreate Order option to be unavailable - Added a confirmation step to Cancel All, Cancel Buys and Cancel Sells commands - Fixed Aggressor coloring and ladder high/low coloring in the SIM execution gateway - Added initial support for ICE market data - In an effort to streamline the PnL report we've made the following changes: - The PnL report will by default filter for Futures contracts only - If you wish to see Spread contracts again you may change Security Type column filter - The PnL report will now only show rows in which there is a position (net and/or day) - The Exchange, Start PnL, Total Net Pos, and Total Net PnL columns are now hidden by default - These columns can be restored by toggling their visibility within the PnL's Settings form - A new Traded Today column has been added to the PnL - Filtering on this column will allow a user to restrict the report to only show today's position ### Internal changes - Improved organization of the shell notification architecture - Added logging to help troubleshoot shell exit hang ## 1.5.6 ### User Visible Changes - Fixed a bug that could cause limits to be erroneously enforced - Improved algo documentation - Changed how the spreader uses net change - Simplified trigger algo user interface ### Internal changes - Defaulted to not recording sim market data - Improved documentation build - Added additional performance tracing ## 1.5.5 - Fixed Market View 'stale working orders' bug ## 1.5.4 - Avoided logging when warming up cache ## 1.5.3 - Fixed sounds startup issue ## 1.5.2 - Added better logging to AlgoDefinitionService ## 1.5.1 - Fixed missing securities in the Fills and P&L windows. ## 1.5.0 ### User Visible Changes #### New Features - This release introduces a major new feature, the Algo Studio, a set of tools allowing traders to create their own algos by composing existing algos to express unique strategies. #### User Interface Improvements - Removed security key field from most grids - Removed trade key field from time and sales grid - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed the floating order book so that rows are no longer highlighted after an order is modified - Relocated quantity and price columns in floating order book immediately after the cancel column; users now can move the mouse a much shorter distance when modifying their orders - The escape key now closes the floating order book #### Bug Fixes - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed a bug in the order book where sometimes parent orders would not update their last message column. #### Algos - Added OCO Algo - An OCO order creates a relationship between a child order and a 'stop' or 'other' order such that when one of these is cancelled, both cancel, or when one is filled, the other order's size is debited in the amount of the fill. Composing this order with Cover simulates scalping functionality #### SDK - Improved SDK documentation and usability - Dynamic orders are now properly identified in the order book #### Documentation - Information on the Spark API has been added to the Spark manual - The documentation has been updated and reorganized to make information easier to find ### Internal Changes - Improved robustness of limit system test - Fixed a bug in handling of built-in bts to user that could lead to failure to login as bts in old systems - Improved market data subsystem to support security definition updates - Fixed a startup race in market data that could lead to data corruption on startup - Increased default order price precision to 8 digis as required by some CME products ## 1.4.11 ### New Features - Floating Order Book - The floating order book provides a quick view of orders occupying a price level in the ladder - Launch the Floating Order Book by middle-clicking a ladder badge - Cancel orders by clicking on the red X in the Cancel column - Quantity and Price modification - Clicking on a row will select it, providing the option for changing your price and quantity - Enter in a new value or use the up/down buttons to set a desired value - Press the green checkbox to finalize your change and update the order ### SDK - Improved SDK documentation and usability ### User Interface Improvements - The following spreader quoting parameters have been deprecated: - Hidden parameter - Price Type setting of the Conditional parameter ### Bug Fixes - Fixed a limit enforcement problem that could lead to 0 sized orders being sent to the exchange ## 1.4.10 ### Bug Fixes - Removed duplicate entries in performance log ## 1.4.9 ### SDK - Added ticker events to the order API ### Performance Improvements - Significantly improved hedging speed ### Bug Fixes - Fixed a visual oddity in the order book UI when using High DPI displays ## 1.4.8 ### Marketdata - Additional trade details for CME ticker ## 1.4.7 ### Bug Fixes - Corrected FIX tag 1028, ManualOrderIndicator, when orders are triggered by algos ## 1.4.6 ### Ladder Usability Improvements - The ladder can now be zoomed in/out according to a user's preference - The zoom slider can be enabled from Ladder Form -> Settings button -> Left Pane tab -> check Zoom Slider checkbox - The zoom functionality can also be performed via hotkey and mouse wheel combinations - Zoom In = CTRL + Mouse wheel up - Zoom Out = CTRL + Mouse wheel down - Reset zoom = CTRL + Mouse wheel click or double click on the zoom slider ### Exchange simulator - Improved the exchange simulator to track real market data more closely ### Bug Fixes - Fixed a UI crash in some cases when attempting to sort the order book by time ## 1.4.5 - Fixed entitlement validation for ICS spreads - Tuned performance logging ## 1.4.4 ### Performance Improvements - Reduced performance logging activity ## 1.4.3 ### Ladder Usability Improvements - Controls found in Left Pane of the ladder can now be hidden via the checkboxes found under Ladder Form -> Settings button -> Left Pane tab - The Left Pane is now scrollable with the mouse wheel when there isn't enough vertical space to accomodate the entire form - The Left Pane can now grown and shrunk horizontally via the splitter between the left pane and the main ladder area ### Performance Improvements - Requoting and hedging latency has been reduced by up to 30% ### Software Development Kit (SDK) Improvements - The API now enforces authentication ### Bug Fixes - The Market View form now honors filters when new securities are added ## 1.4.2 ### User Interface Improvements - When creating a synthetic from the Market View window, securities are now added to the Create Synthetic dialog in the same sort order as they appear in grid ### Bug Fixes - Shell no longer crashes when removing a security from the synthetics window - It is now possible to create a new synthetic using the same name as a previously deleted synthetic ### SDK Improvements - Improved Client and Server SDK clarity and documentation ### Performance Improvements - Synthetic calculation speed was improved by 400%. ### Risk / Entitlement System - Risk Admin UI - Spark users now have separate Trading, RiskAdmin, and/or MDAdmin permissions - Spark users can now only add other users or accounts if permissioned to do so. - Market Data Entitlement - Automated market data reporting ## 1.4.1 ### Tabs - Tabs now shrink and expand to make better use of horizontal space ### Bug Fixes - Fixed a bug that could cause excessive CPU usage when a connection broke - Fixed a layout bug in hedging/requoting performance reports - Fixed account name mismatching bug for old fills ### Absolute Position limits - Positions can now be netted or absolute for purposes of limit enforcing ## 1.4.0 ### Speed Enhancements - Improved requoting and hedging performance - Improved order book form performance ### Server Side SDK - Added a beta version of the server side SDK ### Front End - Added status bars to all UI grids ### Reporting - Added reporting of hedging and requoting performance ## 1.3.8 ### Speed Enhancements - Further speed enhancements ### Conditional (new quoting parameter) - Reduces re-quoting updates by only quoting if N ticks away from the opposite inside market. - Quotes are canceled when it gets further away. - "Price Type" dictates if this logic applies to the quoting market or to the synthetic spread market. ## 1.3.7 ### Net Change pricing - The ability to price synthetics based off of net change ## 1.3.5 ### Speed Enhancements - Further speed enhancements ### Separation of implied and direct market data - Viewing within a market view will now show 3 columns - Direct - Implied - Merged - Ability to configure the market data size in a ladder as the following - Direct - Implied - Merged ### Synthetic creation option to choose Merged or Direct - The ability to choose Merged or Direct per leg when creating a synthetic ### Volume at price - Within a ladder, you can now see a volume at price graph - This is configurable from a ladder's settings as well ### Customized settings in all windows - All windows now contain a settings page where grid settings (font color, size, etc) are applied - These settings can be saved on a per-window basis or as a Default for newly-launched windows ## 1.3.1 Through 1.3.4 ### Speed Enhancements - Further speed enhancements ## 1.2 ### Market View - Synthetic future leg working orders are now shown ### Order Book - Many visual facets of the Order Book grid can now be customized - The Order Book settings page can be accessed from the gears icon in the Order Book toolbar or from the right-click menu - The Expand/Collapse All button has been separated into two different buttons on the toolbar ### Sound Alerts - Sounds alerts can now be configured for various order events - Configure sounds under the Sound/Notification Triggers on the Order Book settings page ### Fills - Newly launched fill windows will filter out start-of-day records by default ### PnL - Prices are now formatted with penny precision - Day PnL has been added to the Totals footer at the bottom of the window ### Ladder - Order badges now have been improved to communicate a variety of order state - Background color now indicates order side - Child orders will display a one-character abbreviation to their parent order enclosed in a rectangle; the rectangle will have a fill color matching the parent order - Border color around badge will match the associated algo color - Exchange orders will present with a solid dot in the badge's top-right corner - When multiple orders reside at the same level, a solid triangle will be present in badge's bottom-right corner; all other badge decorations will not be visible in this state - Hedge orders will present with a vertical line inside the badge's left border - Trigger orders, once triggered, will no longer be shown in the ladder - Session High and Low visual indicators have been added to the Price column - Session range is now indicated in the Price column - A button reflecting position has been added above the quantity field - This button reflects the position for the currently selected account - Pressing the button will copy the position size to the quantity field - Order quantity button size values are now customizable - Default size preset values can now be changed, as well as added or removed - This can be configured per ladder instance (i.e. per security) by making use of the Custom tab - Synthetic ladders that were saved as part of a workspace are now restored on startup ### Synthetics - Hedge Ratio parameter has been renamed to Lean Qty Factor - Spreader now includes a Hidden mode parameter - A quoting leg can be hidden, ie an order will not be sent out until the market crosses the computed quoting price. When that happens, the quote is sent out as an IOC order. ### Algos - Trigger orders now can contain a Trigger Exit parameter based on time or price; once the exit condition has been met the Trigger order will cancel - IOC/FAK order type added - Cover order type added - Canceling a synthetic order no longer cancels any working hedge orders ### General - A manual page has been added to the launcher Help menu - Various help buttons and tooltips were added throughout the application - Various cash per point values updated - Time-based grid filters now have tick up/down buttons - Numerous performance improvements and stability enhancements - Automated position and Order Book maintenance during daily recycle - Individual fills will be compacted into the Start of Day position records - Orders from the day before the recycle will be deleted ## 1.1 ### 1.1.22 - Order Book: Orders in Error status can now be recreated - Order Book: Orders containing child orders will now be collapsed by default. - Order Book: Expand / Collapse All button added to the right-click menu and window action pane, denoted by ▲ icon - Order Book: Symbol column added to allow for filtering based on group symbol - Time filters now have a quick Set Last Hour hyperlink which will set the Period Begin filter to (Now - 1 hour) ### 1.1.20 - Update CME market data handler for price precision extension. https://www.cmegroup.com/confluence/display/EPICSANDBOX/Price+Precision+Extension ### 1.1.8 - Enabled wild cards in risk management UI - Fixed spreader order updates ### 1.1.7 - Fixed spread leg price fill - Fixed HO cash per point value ### 1.1.6 - Fixed occasional crash when filtering fills - Fixed several cash per point multipliers - Colored time of sales row with aggressor side - Iceberg orders now cancel (rather than an error) when a child is canceled ### 1.1.0 - Added per user self match protection, location and self match protection FIX tag settings - Implemented a new "Trigger Order" algo - Corrected tick formatting for a number of products - Added the ability to recreate canceled orders - Added leg fills to facilitate futures based PnL - PnL report now has PnL columns calculated based on your Start of Day, current day, and total position - Start, Day and Total PnL columns are painted with a red or green background color based on if the pnl value is negative or positive respectively - Corrected cash per point values, used in pnl calculations, for a number of products - PnL report will now remember any customizations you make to filtering and/or sorting criteria \ No newline at end of file From a69118c5d330cb662dd915da0612e0947dc8c630 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 22 May 2020 23:42:27 -0500 Subject: [PATCH 11/23] fix line endings in release_notes --- doc/user/content/release_notes/_index.md | 732 ++++++++++++++++++++++- 1 file changed, 731 insertions(+), 1 deletion(-) diff --git a/doc/user/content/release_notes/_index.md b/doc/user/content/release_notes/_index.md index f59d35701..676141707 100644 --- a/doc/user/content/release_notes/_index.md +++ b/doc/user/content/release_notes/_index.md @@ -1 +1,731 @@ -+++ title = "Release notes" weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ ## 2.16.2 ### User Visible Change - Synthetic creation dialog has a "fractional" checkbox next to the tick settings. Users may uncheck this box to enter integer tick sizes, so the synthetic security's prices will be displayed without decimals, or fractional units. ## 2.16.1 ### Bug Fixes - OrderBook's algo state parameters (in the panel on the right side) are sorted alphabetically ## 2.16.0 ### Bug Fixes - Solved an issue that could result in incorrect ladder levels - Solved an issue that could lead to incorrect routing of orders in the event of certain MSGW changes ### API Changes - Add C# client side API samples for order entry, position monitoring and market data observation ## 2.15.10 ### Bug Fixes - Solved an issue that could cause the user interface to fail when playing some alert sounds ### API Changes - Added settlement and position information to the API - Added the ability for user algos to report custom state to the user interface - Added the ability for algos to discover all active securities ## 2.15.3 ### Bug Fixes - Fixed a bug where some CME currency spreads exhibited incorrect tick values ## 2.15.2 ### User Visible Changes - Excel RTD plugin can now receive ICE market data ## 2.15.1 ### Bug Fixes - Fixed a FIX log parsing issue that resulted in exchange gateway logon problems ## 2.15.0 ### User Visible Changes - Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message - Synthetic cloning now allows for any parameter to be changed, including tick size and leg contracts - Added ability to import synthetics from a CSV file; see our manual for further details on this process - Reduced Iceberg reloading latency ### Bug Fixes - Fixed a bug where highlighted fills could lose their highlight status - Fixed a bug where the (Mini) OrderBook PIQ could be displaying an old value ## 2.14.3 ### Bug Fixes - Fixed a bug regarding ICE logon messaging ## 2.14.2 ### Bug Fixes - Fixed a bug regarding ICE messaging ## 2.14.1 ### Bug Fixes - Fixed a bug regarding ICE logon authentication ## 2.14.0 ### User Visible Changes - All ladders can now be recentered by (shift or alt) + double clicking over the Price column in a ladder - Added a Max Order Quantity setting to the Safety Checks tab on the Ladder settings. This setting allows for a user-defined maximum order quantity. - Added a Price Display Format setting to the Market Price and Size Display tab on the Ladder settings. This setting allows for price levels in the ladder to be displayed without a decimal separator. - Synthetic instrument creation with 3 legs no longer defaults to butterfly quantites ### Bug Fixes - Fixed an issue where market transition were not observed by IAlgoOrder - Fixed a bug in error reporting - Fixed a bug in the PnL window where specifying a certain grouping order would lead to a UI failure ## 2.13.0 ### User Visible Changes - Added the name of the spreader to the parent algo badge (for spreader child orders), in the fills, orderbook and floating orderbook windows - Added support for sounds for new orders - Added a new quoting throttle parameter for the spreader, that throttles quotes that are moving toward the inside market but are still a configurable number of ticks away - Enabled the ladder to remember the left panel scroll position across front end restarts ### Bug Fixes - Fixed the local fills window so that it does not show the admin fills - Removed the deleted accounts from the ladder accounts dropdown - Fixed the orderbook price for iceberg of spreaders ## 2.12.0 ### User Visible Changes - Added support for ICE market data and order execution ### Internal Changes - Lots of permission / admin changes to facilitate ICE ## 2.11.0 ### User Visible Changes - Fixed fills form time filter to also apply to SOD fills - Addressed an issue that could prevent the web Admin UI from displaying over slow HTTP connections - Removed the option to enter manual spread fills - Fixed an issue that could cause erroneous fill account attribution in the event of a crash ### Internal Changes - Added support for tag 1031. Currently defaults to Y, can it be override through config. - To facilitate support, allowed the bts user to view and edit algos from all other users - Improved system tests - Improved log messages in UI to include dispatcher thread name - Added support for Windows core dumps in the UI ## 2.10.0 ### User Visible Changes - Fills now include information about the algo that originated the fill - A new, more powerful PnL form is now available ### API Changes - Added security state information (pre open, halted, normal, closed, etc) ### Bug Fixes - Brought back the "select all" check box in the mini order book - Fixed an issue in the market data subsystem that on rare occasions could result in a startup crash ### Internal Changes - Fixed an issue that was stopping us from interpreting SOD times as local rather than GMT ## 2.9.3 ### Internal Changes - Fixed system test scripts ## 2.9.2 ### Bug Fixes - Fixed an issue with the exchange simulator that could lead to crossed markets ## 2.9.1 ### Bug Fixes - Fixed an issue with trade sound alerts, where in some cases the use of a "In Between" condition could lead to a UI failure. - Fixed an issue with the display of the new raw position column in the market view window. - Fixed the popup label that describes the raw position information in the ladder ### Internal Changes - Avoided shipping production configuration defaults that lead to trying to download a position file for the development sftp server. ### Api - C# API sample now uses synchronous calls. ## 2.9.0 ### User Visible Changes - Improved Workspace management User Interface - Added the ability to change grid background colors - The Spark UI Window group now has a title in the Windows task bar - Added sound alerts for trade events, see Launcher -> Settings -> Alerts - Allowed composite algos that are attached to existing orders to identify fills that were already present prior to attachment - Added import facilities for GMI position files - Added the ability for risk managers to enter manual fills - Added "raw" P&L columns, that is columns that *do not* include spread legs in their accounting ### Bug Fixes - Fixed the settings action menu (Load/Save/Reset to Factory) - Fixed the method used to determine if a security is expired to take into account the start of day time ### API Changes - Fixed an issue in the Client SDK that could lead to occasional failures to connect to the spark server as well as excessive memory usage. - Added the ability for algo orders to distinguish fills existing prior to launch ### Internal Changes - Changed how we packaged certain third-party components - Added logging of entitlement status - Tagged outgoing orders with sequence number of marketdata or FIX event that triggered them ## 2.8.3 ### Bug Fixes - Fixed a bug that could cause an OrderBook's Security column filter to be blank - Fixed a bug that could cause a UI failure when clearing a filter selection on a filtering widget ## 2.8.2 ### Bug Fixes - Added proper display factors for SOM spreads - Fixed a bug that could cause a UI failure when trying to change settings in a synthetic ladder ## 2.8.1 ### Bug fixes - Fixed an error in the UI grids filtering widget ## 2.8.0 ### User Visible Changes - Added ProRata and Scratch algos - Ladder badge now grows/shrinks to fill the containing cell - Attached algo parameters are now displayed in the update panel - Fixed a bug where the update panel would show '-' values when only 1 order was selected - Fixed a bug that cause cause a failure on startup if the user loaded a workspace with a Ladder that had a dynamic order type selected by default - Increased width of login panel to better show login error messages - Added optional 'Maker/Taker' pricing to Spreader algo - Algo buttons in ladder can now be made to deactivate after launching an algo or remain 'sticky' ### Internal changes - Made it easier to generate simple UI's for new order types ### API Changes - Dynamic orders can now use QuantityMeasure parameter types ## 2.7.2 ### User Visible Changes - Changed the login dialog to avoid leaking workspace names from other users. - Added new Splitter algo. From the manual: The splitter is useful for pro-rata markets where you want to vary your exposure independent of the order quantity that you want to fill. The splitter will complete when the number of fills reaches or exceeds the order quantity but it will put exposed_qty total size on the market. Splitter favors order size over queue position. ### Internal Changes - Made spark more resilient to lack of connectivity to the CME web site for downloading of templates. ## 2.7.1 ### User Visible Changes - Fixed some issues with the Cover algo, where in some circumstances it would erroneously cancel launched hedges on completion. ## 2.7.0 ### User Visible Changes - Allowed algos to process "in-flight" fills while shutting down - Changed the cover algo to continue to hedge while shutting down ### API Changes - Changed the API so that algos do not fully terminate until all their children are terminated. Algos that are in the process of shutting down in response to a complete or cancel call will still receive child updates, which they can use to calculate and report an accurate fill count (during this shutdown stage algos cannot create, cancel or update children). A new IAlgoServices method, is_shutting_down(), can be used to determine if an algo is shutting down. ## 2.6.2 ### User Visible Changes - Fixed an issue in the ladder where in some cases the mini order book could not be brought up from a badge - Fixed a rare race condition that could lead to erroneous limit enforcement - Fixed an issue with the margin limits where an error could occur if an account name with more than 12 chars was used ## 2.6.1 ### User Visible Changes - Fixed an issue in the ladder where an error could occur when trying to change ladder settings for the first time ## 2.6.0 ### User Visible Changes - In the ladder made last trade more distinctive when overlayed on the volumn column - In the ladder, corrected display of volume tool tip - In the ladder, changed the consolidation of last trade to consider only the price ignoring aggressor changes - Added an option for the Top Algo to delete itself if within N ticks from top of book - Address a rare issue that could lead to an error report on UI exit - Added margin risk limits - Added the "Offset" algo. Offset prices a child algo at a parameterizable distance from the top of the book - Avoided switching the current account and order type on open ladders when limits are changed ### Internal Changes - Ensure that admin logins are always allowed to login, regardless of keycode status. ## 2.5.0 ### User Visible Changes - Added loss limit risk check - Made algos, synthetics and user names private so that multiple users can share a single system privately. - Allowed the mini order book defaults for column widths to be changed from the mini order book - Allowed the mini order book to shrink to the minimum size that will be needed to display the selected columns - Improved accuracy of the directional arrow when displaying last trades in the volumn column ## 2.4.0 ### User Visible Settings - In the ladder, changed the last trade column to accumulate successive trades at the same price - Fixed a bug in the order book where the right side ladder would display the top leve order's security rather then current row's - Added OK, Cancel buttons to the security picker for ladder profiles or sounds - Added ladder settings for the mini order book - Added a safety check to guard against unintentional market crosses - Improved the Queue Holder mode in the spreader: - Added a Show Quantity, allowing the spreader to keep queue position of the trailing orders as Fills (of size Show Qty) happen - Improved spreader performance when in Queue Holder mode ### Internal changes - Suppressed order callbacks for completed/canceled orders. This should eliminate some bogus error logs by spreader orders. - Addressed a potential concurrency issues with service initialization. ## 2.3.0 ### User Visible Changes - Introduced multiple settings profiles for the ladder - This allows multiple standard configuration for the ladder, optionally with security specific variations - Made Cover order more independent from its hedging chidren: - Cover continues to operate even if an hedging child is canceled - When a cover is canceled it will detach from any running hedging children, instead of canceling them - Changed Lean, Join and Cover algos to hide themselves in the ladder once they have completed their work - Changed manual fills to appear in day PnL rather than in the SOD records - Add buy/sell coloring to fill rows in fills window - Streamlined the mini order book: - Display of the mini order book popup is quicker - Only exchange orders are displayed - Update buttons are only displayed for orders that are under control of an algo with the update applying to the entire algo, not just the exchange order - We can now select multiple rows to attach, detach, update or cancel multiple orders in a batch - A checkbox column has been added to make clearer which rows are selected ### API Changes - Enhanced the API to allow algos to implement custom cancel handling - Allowed algos to control their visibility in the ladder through the API ### Internal Changes - Added system requirements to Spark documentation - Implemented keycodes - Temporarily rejected stop and stop limit orders, pending bug fixes ## 2.2.0 ### User Visible Changes - Made our orders easier to spot in MBO display - Changed middle-click on center column to recenter ladder and introduced Alt middle-click on center to bring up the MBO popup - Fixed Net/Absolute radio button in risk admin UI - Fixed double counting of spread legs in limits - Removed expired fills from the system - Improved handling of orders with undiscovered securities - Added feedback to the ladder when the user attempts to middle click on bid/ask columns using an order that does not have parameters - Fixed display of algo studio algo types in order book - Hid net change setting in synthetic ladders - Fixed a number of problems with filtering on the Fills form - On the Lean algo, OnToward and Away are now calculated with respect to the opposite inside market at time of the order launch - Iceberg Spreaders with queue holders are not erroneously cancelled after the first fill - Added security symbol column to fills window - Re-organized ladder settings dialog to make it clearer and easier to use ## 2.1.4 ### User Visible Changes - Fixed handling of cancel button in security picker ## 2.1.3 ### User Visible Changes - Fixed a simulator bug in the handling of 0 sized orders ## 2.2.1 ### User Visible Changes - Fixed order book form exception when display a spreader order for whichs the legs were not present yet ## 2.1.1 ### User Visible Changes - Added PIQ to GLBX Iceberg orders - Corrected handling of stop limit orders ## 2.1.0 ### User Visible Changes - Added support for the GLBX Iceberg order type - Allowed quick algo param edits by middle-clicking on either the bid/ask columns or a "favorite" button - Added support for manual fills, either entered manually or imported from file. Manual fills are used only for P&L purposes, they have no impact on limits - Allowed the LTQ and VAP values to be overlayed on the same ladder column - Added day position information to the ladder - Added PIQ to the mini order book - Fixed a rare bug that could lead to server failure when requesting market data - Fixed a bug that could cause incorrect price displays for certain types of synthetic securities ## 2.0.5 ### User Visible Changes - Fixed a bug in the handling of rejected QHO orders - Implemented stricter position limit enforcement - Fixed a bug that could cause server failure when trying to attach to already attached orders ## 2.0.4 ### User Visible Changes - Fixed performance regression in order manager ### Internal changes - Improved market data diagnostics for bad configurations - Changed market data default buffer size ## 2.0.3 ### Internal changes - Improved backwards compatibility in UI settings ## 2.0.2 ### User Visible Changes - Middle click the ladder price column to show the orders for that price level - Middle click the bid or ask column in the ladder no longer sends an order ### Internal changes - Improved market by order performance under heavy load - Fixed a concurrency bug in SIM ## 2.0.0 ### User Visible Changes - Support for attaching and detaching algos to existing orders - Support for display and update of all parameters in running algos - Streamlining of order badge decorations in ladder - New order search/filtering algorithm for order book - Simpler representation of complex algo chains in order book and mini order book - Visual and usability improvements to mini order book - Streamlining of algo parameter dialog in ladder - New spreader queue holder behavior - Visual improvements to the order book - New server side API - Improved admin UI performance - Optimized PIQ rendering ### Internal changes - Exchange simulator no longer requires daily sequence number reset - Improved MD resilience to corrupted shared memory - Native orders can now buffer updates/cancels when disconnected or pending first acknowledgment - Improved settings manager tool output - Added diagnostics in the event MD memory corruption is detected - Added systems tests for join,lean, iceberg and spreader orders - Made exchange order recovery more resilient in the presence of database loss ## 1.6.2 ### User Visible Changes ### Exchange simulator - Exchange simulator now now produce position in queue data ## 1.6.0 ### User Visible Changes #### New Features - You can now view your order's position in queue in the ladder #### Bug Fixes - Fix a bug in the order popup in the ladder which could lead to a crash. ## 1.5.9 ### User Visible Changes - Fix for stunnel connections on Windows 7 ## 1.5.8 ### User Visible Changes - Fixed a bug where it was possible to crash the UI by entering an order through the order ticket if Enter was used to dismiss the dialog. - Fixed a spreader reporting bug which could cause the server to crash if an algo was used to control certain types of synthetics - Improved user message when the UI fails to login - Integrated stunnel into UI to make VPN setup unnecessary in unsecured environments. ## 1.5.7 ### User Visible Changes - New videos have been added to the manual describing the [Algo Studio](./bts_spark/Trading/_index.md#algo-studio) and [Spreader](./bts_spark/Spreader/_index.md) - Fixed a bug that occasionally would cause windows to be position outside the visible screen on startup - Fixed a bug in the order book form that would occasionally cause the Recreate Order option to be unavailable - Added a confirmation step to Cancel All, Cancel Buys and Cancel Sells commands - Fixed Aggressor coloring and ladder high/low coloring in the SIM execution gateway - Added initial support for ICE market data - In an effort to streamline the PnL report we've made the following changes: - The PnL report will by default filter for Futures contracts only - If you wish to see Spread contracts again you may change Security Type column filter - The PnL report will now only show rows in which there is a position (net and/or day) - The Exchange, Start PnL, Total Net Pos, and Total Net PnL columns are now hidden by default - These columns can be restored by toggling their visibility within the PnL's Settings form - A new Traded Today column has been added to the PnL - Filtering on this column will allow a user to restrict the report to only show today's position ### Internal changes - Improved organization of the shell notification architecture - Added logging to help troubleshoot shell exit hang ## 1.5.6 ### User Visible Changes - Fixed a bug that could cause limits to be erroneously enforced - Improved algo documentation - Changed how the spreader uses net change - Simplified trigger algo user interface ### Internal changes - Defaulted to not recording sim market data - Improved documentation build - Added additional performance tracing ## 1.5.5 - Fixed Market View 'stale working orders' bug ## 1.5.4 - Avoided logging when warming up cache ## 1.5.3 - Fixed sounds startup issue ## 1.5.2 - Added better logging to AlgoDefinitionService ## 1.5.1 - Fixed missing securities in the Fills and P&L windows. ## 1.5.0 ### User Visible Changes #### New Features - This release introduces a major new feature, the Algo Studio, a set of tools allowing traders to create their own algos by composing existing algos to express unique strategies. #### User Interface Improvements - Removed security key field from most grids - Removed trade key field from time and sales grid - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed the floating order book so that rows are no longer highlighted after an order is modified - Relocated quantity and price columns in floating order book immediately after the cancel column; users now can move the mouse a much shorter distance when modifying their orders - The escape key now closes the floating order book #### Bug Fixes - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM - Fixed a bug in the order book where sometimes parent orders would not update their last message column. #### Algos - Added OCO Algo - An OCO order creates a relationship between a child order and a 'stop' or 'other' order such that when one of these is cancelled, both cancel, or when one is filled, the other order's size is debited in the amount of the fill. Composing this order with Cover simulates scalping functionality #### SDK - Improved SDK documentation and usability - Dynamic orders are now properly identified in the order book #### Documentation - Information on the Spark API has been added to the Spark manual - The documentation has been updated and reorganized to make information easier to find ### Internal Changes - Improved robustness of limit system test - Fixed a bug in handling of built-in bts to user that could lead to failure to login as bts in old systems - Improved market data subsystem to support security definition updates - Fixed a startup race in market data that could lead to data corruption on startup - Increased default order price precision to 8 digis as required by some CME products ## 1.4.11 ### New Features - Floating Order Book - The floating order book provides a quick view of orders occupying a price level in the ladder - Launch the Floating Order Book by middle-clicking a ladder badge - Cancel orders by clicking on the red X in the Cancel column - Quantity and Price modification - Clicking on a row will select it, providing the option for changing your price and quantity - Enter in a new value or use the up/down buttons to set a desired value - Press the green checkbox to finalize your change and update the order ### SDK - Improved SDK documentation and usability ### User Interface Improvements - The following spreader quoting parameters have been deprecated: - Hidden parameter - Price Type setting of the Conditional parameter ### Bug Fixes - Fixed a limit enforcement problem that could lead to 0 sized orders being sent to the exchange ## 1.4.10 ### Bug Fixes - Removed duplicate entries in performance log ## 1.4.9 ### SDK - Added ticker events to the order API ### Performance Improvements - Significantly improved hedging speed ### Bug Fixes - Fixed a visual oddity in the order book UI when using High DPI displays ## 1.4.8 ### Marketdata - Additional trade details for CME ticker ## 1.4.7 ### Bug Fixes - Corrected FIX tag 1028, ManualOrderIndicator, when orders are triggered by algos ## 1.4.6 ### Ladder Usability Improvements - The ladder can now be zoomed in/out according to a user's preference - The zoom slider can be enabled from Ladder Form -> Settings button -> Left Pane tab -> check Zoom Slider checkbox - The zoom functionality can also be performed via hotkey and mouse wheel combinations - Zoom In = CTRL + Mouse wheel up - Zoom Out = CTRL + Mouse wheel down - Reset zoom = CTRL + Mouse wheel click or double click on the zoom slider ### Exchange simulator - Improved the exchange simulator to track real market data more closely ### Bug Fixes - Fixed a UI crash in some cases when attempting to sort the order book by time ## 1.4.5 - Fixed entitlement validation for ICS spreads - Tuned performance logging ## 1.4.4 ### Performance Improvements - Reduced performance logging activity ## 1.4.3 ### Ladder Usability Improvements - Controls found in Left Pane of the ladder can now be hidden via the checkboxes found under Ladder Form -> Settings button -> Left Pane tab - The Left Pane is now scrollable with the mouse wheel when there isn't enough vertical space to accomodate the entire form - The Left Pane can now grown and shrunk horizontally via the splitter between the left pane and the main ladder area ### Performance Improvements - Requoting and hedging latency has been reduced by up to 30% ### Software Development Kit (SDK) Improvements - The API now enforces authentication ### Bug Fixes - The Market View form now honors filters when new securities are added ## 1.4.2 ### User Interface Improvements - When creating a synthetic from the Market View window, securities are now added to the Create Synthetic dialog in the same sort order as they appear in grid ### Bug Fixes - Shell no longer crashes when removing a security from the synthetics window - It is now possible to create a new synthetic using the same name as a previously deleted synthetic ### SDK Improvements - Improved Client and Server SDK clarity and documentation ### Performance Improvements - Synthetic calculation speed was improved by 400%. ### Risk / Entitlement System - Risk Admin UI - Spark users now have separate Trading, RiskAdmin, and/or MDAdmin permissions - Spark users can now only add other users or accounts if permissioned to do so. - Market Data Entitlement - Automated market data reporting ## 1.4.1 ### Tabs - Tabs now shrink and expand to make better use of horizontal space ### Bug Fixes - Fixed a bug that could cause excessive CPU usage when a connection broke - Fixed a layout bug in hedging/requoting performance reports - Fixed account name mismatching bug for old fills ### Absolute Position limits - Positions can now be netted or absolute for purposes of limit enforcing ## 1.4.0 ### Speed Enhancements - Improved requoting and hedging performance - Improved order book form performance ### Server Side SDK - Added a beta version of the server side SDK ### Front End - Added status bars to all UI grids ### Reporting - Added reporting of hedging and requoting performance ## 1.3.8 ### Speed Enhancements - Further speed enhancements ### Conditional (new quoting parameter) - Reduces re-quoting updates by only quoting if N ticks away from the opposite inside market. - Quotes are canceled when it gets further away. - "Price Type" dictates if this logic applies to the quoting market or to the synthetic spread market. ## 1.3.7 ### Net Change pricing - The ability to price synthetics based off of net change ## 1.3.5 ### Speed Enhancements - Further speed enhancements ### Separation of implied and direct market data - Viewing within a market view will now show 3 columns - Direct - Implied - Merged - Ability to configure the market data size in a ladder as the following - Direct - Implied - Merged ### Synthetic creation option to choose Merged or Direct - The ability to choose Merged or Direct per leg when creating a synthetic ### Volume at price - Within a ladder, you can now see a volume at price graph - This is configurable from a ladder's settings as well ### Customized settings in all windows - All windows now contain a settings page where grid settings (font color, size, etc) are applied - These settings can be saved on a per-window basis or as a Default for newly-launched windows ## 1.3.1 Through 1.3.4 ### Speed Enhancements - Further speed enhancements ## 1.2 ### Market View - Synthetic future leg working orders are now shown ### Order Book - Many visual facets of the Order Book grid can now be customized - The Order Book settings page can be accessed from the gears icon in the Order Book toolbar or from the right-click menu - The Expand/Collapse All button has been separated into two different buttons on the toolbar ### Sound Alerts - Sounds alerts can now be configured for various order events - Configure sounds under the Sound/Notification Triggers on the Order Book settings page ### Fills - Newly launched fill windows will filter out start-of-day records by default ### PnL - Prices are now formatted with penny precision - Day PnL has been added to the Totals footer at the bottom of the window ### Ladder - Order badges now have been improved to communicate a variety of order state - Background color now indicates order side - Child orders will display a one-character abbreviation to their parent order enclosed in a rectangle; the rectangle will have a fill color matching the parent order - Border color around badge will match the associated algo color - Exchange orders will present with a solid dot in the badge's top-right corner - When multiple orders reside at the same level, a solid triangle will be present in badge's bottom-right corner; all other badge decorations will not be visible in this state - Hedge orders will present with a vertical line inside the badge's left border - Trigger orders, once triggered, will no longer be shown in the ladder - Session High and Low visual indicators have been added to the Price column - Session range is now indicated in the Price column - A button reflecting position has been added above the quantity field - This button reflects the position for the currently selected account - Pressing the button will copy the position size to the quantity field - Order quantity button size values are now customizable - Default size preset values can now be changed, as well as added or removed - This can be configured per ladder instance (i.e. per security) by making use of the Custom tab - Synthetic ladders that were saved as part of a workspace are now restored on startup ### Synthetics - Hedge Ratio parameter has been renamed to Lean Qty Factor - Spreader now includes a Hidden mode parameter - A quoting leg can be hidden, ie an order will not be sent out until the market crosses the computed quoting price. When that happens, the quote is sent out as an IOC order. ### Algos - Trigger orders now can contain a Trigger Exit parameter based on time or price; once the exit condition has been met the Trigger order will cancel - IOC/FAK order type added - Cover order type added - Canceling a synthetic order no longer cancels any working hedge orders ### General - A manual page has been added to the launcher Help menu - Various help buttons and tooltips were added throughout the application - Various cash per point values updated - Time-based grid filters now have tick up/down buttons - Numerous performance improvements and stability enhancements - Automated position and Order Book maintenance during daily recycle - Individual fills will be compacted into the Start of Day position records - Orders from the day before the recycle will be deleted ## 1.1 ### 1.1.22 - Order Book: Orders in Error status can now be recreated - Order Book: Orders containing child orders will now be collapsed by default. - Order Book: Expand / Collapse All button added to the right-click menu and window action pane, denoted by ▲ icon - Order Book: Symbol column added to allow for filtering based on group symbol - Time filters now have a quick Set Last Hour hyperlink which will set the Period Begin filter to (Now - 1 hour) ### 1.1.20 - Update CME market data handler for price precision extension. https://www.cmegroup.com/confluence/display/EPICSANDBOX/Price+Precision+Extension ### 1.1.8 - Enabled wild cards in risk management UI - Fixed spreader order updates ### 1.1.7 - Fixed spread leg price fill - Fixed HO cash per point value ### 1.1.6 - Fixed occasional crash when filtering fills - Fixed several cash per point multipliers - Colored time of sales row with aggressor side - Iceberg orders now cancel (rather than an error) when a child is canceled ### 1.1.0 - Added per user self match protection, location and self match protection FIX tag settings - Implemented a new "Trigger Order" algo - Corrected tick formatting for a number of products - Added the ability to recreate canceled orders - Added leg fills to facilitate futures based PnL - PnL report now has PnL columns calculated based on your Start of Day, current day, and total position - Start, Day and Total PnL columns are painted with a red or green background color based on if the pnl value is negative or positive respectively - Corrected cash per point values, used in pnl calculations, for a number of products - PnL report will now remember any customizations you make to filtering and/or sorting criteria \ No newline at end of file ++++ +title = "Release notes" +weight = 3 +sort_by = "weight" +insert_anchor_links = "right" ++++ +## 2.16.2 +### User Visible Change + - Synthetic creation dialog has a "fractional" checkbox next to the tick settings. Users may uncheck this box to enter integer tick sizes, so the synthetic security's prices will be displayed without decimals, or fractional units. +## 2.16.1 +### Bug Fixes + - OrderBook's algo state parameters (in the panel on the right side) are sorted alphabetically +## 2.16.0 +### Bug Fixes + - Solved an issue that could result in incorrect ladder levels + - Solved an issue that could lead to incorrect routing of orders in the event of certain MSGW changes +### API Changes + - Add C# client side API samples for order entry, position monitoring and market data observation + +## 2.15.10 +### Bug Fixes + - Solved an issue that could cause the user interface to fail when playing some alert sounds +### API Changes + - Added settlement and position information to the API + - Added the ability for user algos to report custom state to the user interface + - Added the ability for algos to discover all active securities +## 2.15.3 +### Bug Fixes + - Fixed a bug where some CME currency spreads exhibited incorrect tick values +## 2.15.2 +### User Visible Changes + - Excel RTD plugin can now receive ICE market data +## 2.15.1 +### Bug Fixes + - Fixed a FIX log parsing issue that resulted in exchange gateway logon problems +## 2.15.0 +### User Visible Changes + - Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message + - Synthetic cloning now allows for any parameter to be changed, including tick size and leg contracts + - Added ability to import synthetics from a CSV file; see our manual for further details on this process + - Reduced Iceberg reloading latency +### Bug Fixes + - Fixed a bug where highlighted fills could lose their highlight status + - Fixed a bug where the (Mini) OrderBook PIQ could be displaying an old value + +## 2.14.3 +### Bug Fixes + - Fixed a bug regarding ICE logon messaging + +## 2.14.2 +### Bug Fixes + - Fixed a bug regarding ICE messaging + +## 2.14.1 +### Bug Fixes + - Fixed a bug regarding ICE logon authentication + +## 2.14.0 +### User Visible Changes + - All ladders can now be recentered by (shift or alt) + double clicking over the Price column in a ladder + - Added a Max Order Quantity setting to the Safety Checks tab on the Ladder settings. This setting allows for a user-defined maximum order quantity. + - Added a Price Display Format setting to the Market Price and Size Display tab on the Ladder settings. This setting allows for price levels in the ladder to be displayed without a decimal separator. + - Synthetic instrument creation with 3 legs no longer defaults to butterfly quantites +### Bug Fixes + - Fixed an issue where market transition were not observed by IAlgoOrder + - Fixed a bug in error reporting + - Fixed a bug in the PnL window where specifying a certain grouping order would lead to a UI failure + +## 2.13.0 +### User Visible Changes + - Added the name of the spreader to the parent algo badge (for spreader child orders), in the fills, orderbook and floating orderbook windows + - Added support for sounds for new orders + - Added a new quoting throttle parameter for the spreader, that throttles quotes that are moving toward the inside market but are still a configurable number of ticks away + - Enabled the ladder to remember the left panel scroll position across front end restarts +### Bug Fixes + - Fixed the local fills window so that it does not show the admin fills + - Removed the deleted accounts from the ladder accounts dropdown + - Fixed the orderbook price for iceberg of spreaders + +## 2.12.0 +### User Visible Changes + - Added support for ICE market data and order execution +### Internal Changes + - Lots of permission / admin changes to facilitate ICE + +## 2.11.0 +### User Visible Changes + - Fixed fills form time filter to also apply to SOD fills + - Addressed an issue that could prevent the web Admin UI from displaying over slow HTTP connections + - Removed the option to enter manual spread fills + - Fixed an issue that could cause erroneous fill account attribution in the event of a crash +### Internal Changes + - Added support for tag 1031. Currently defaults to Y, can it be override through config. + - To facilitate support, allowed the bts user to view and edit algos from all other users + - Improved system tests + - Improved log messages in UI to include dispatcher thread name + - Added support for Windows core dumps in the UI + +## 2.10.0 +### User Visible Changes + - Fills now include information about the algo that originated the fill + - A new, more powerful PnL form is now available +### API Changes + - Added security state information (pre open, halted, normal, closed, etc) +### Bug Fixes + - Brought back the "select all" check box in the mini order book + - Fixed an issue in the market data subsystem that on rare occasions could result in a startup crash +### Internal Changes + - Fixed an issue that was stopping us from interpreting SOD times as local rather than GMT +## 2.9.3 +### Internal Changes + - Fixed system test scripts +## 2.9.2 +### Bug Fixes + - Fixed an issue with the exchange simulator that could lead to crossed markets +## 2.9.1 +### Bug Fixes + - Fixed an issue with trade sound alerts, where in some cases the use of a "In Between" condition could lead to a UI failure. + - Fixed an issue with the display of the new raw position column in the market view window. + - Fixed the popup label that describes the raw position information in the ladder +### Internal Changes + - Avoided shipping production configuration defaults that lead to trying to download a position file for the development sftp server. +### Api + - C# API sample now uses synchronous calls. + +## 2.9.0 +### User Visible Changes + - Improved Workspace management User Interface + - Added the ability to change grid background colors + - The Spark UI Window group now has a title in the Windows task bar + - Added sound alerts for trade events, see Launcher -> Settings -> Alerts + - Allowed composite algos that are attached to existing orders to identify fills that were already present prior to attachment + - Added import facilities for GMI position files + - Added the ability for risk managers to enter manual fills + - Added "raw" P&L columns, that is columns that *do not* include spread legs in their accounting +### Bug Fixes + - Fixed the settings action menu (Load/Save/Reset to Factory) + - Fixed the method used to determine if a security is expired to take into account the start of day time +### API Changes + - Fixed an issue in the Client SDK that could lead to occasional failures to connect to the spark server as well as excessive memory usage. + - Added the ability for algo orders to distinguish fills existing prior to launch +### Internal Changes + - Changed how we packaged certain third-party components + - Added logging of entitlement status + - Tagged outgoing orders with sequence number of marketdata or FIX event that triggered them +## 2.8.3 +### Bug Fixes + - Fixed a bug that could cause an OrderBook's Security column filter to be blank + - Fixed a bug that could cause a UI failure when clearing a filter selection on a filtering widget +## 2.8.2 +### Bug Fixes + - Added proper display factors for SOM spreads + - Fixed a bug that could cause a UI failure when trying to change settings in a synthetic ladder +## 2.8.1 +### Bug fixes + - Fixed an error in the UI grids filtering widget +## 2.8.0 +### User Visible Changes + - Added ProRata and Scratch algos + - Ladder badge now grows/shrinks to fill the containing cell + - Attached algo parameters are now displayed in the update panel + - Fixed a bug where the update panel would show '-' values when only + 1 order was selected + - Fixed a bug that cause cause a failure on startup if the user + loaded a workspace with a Ladder that had a dynamic order type + selected by default + - Increased width of login panel to better show login error messages + - Added optional 'Maker/Taker' pricing to Spreader algo + - Algo buttons in ladder can now be made to deactivate after launching an algo or remain 'sticky' +### Internal changes + - Made it easier to generate simple UI's for new order types +### API Changes + - Dynamic orders can now use QuantityMeasure parameter types + +## 2.7.2 +### User Visible Changes + - Changed the login dialog to avoid leaking workspace names from other users. + - Added new Splitter algo. From the manual: The splitter is useful + for pro-rata markets where you want to vary your exposure + independent of the order quantity that you want to fill. The + splitter will complete when the number of fills reaches or exceeds + the order quantity but it will put exposed_qty total size on the + market. Splitter favors order size over queue position. +### Internal Changes + - Made spark more resilient to lack of connectivity to the CME web site for downloading of templates. + +## 2.7.1 +### User Visible Changes + - Fixed some issues with the Cover algo, where in some circumstances + it would erroneously cancel launched hedges on completion. + +## 2.7.0 +### User Visible Changes + - Allowed algos to process "in-flight" fills while shutting down + - Changed the cover algo to continue to hedge while shutting down +### API Changes + - Changed the API so that algos do not fully terminate until all + their children are terminated. Algos that are in the process of + shutting down in response to a complete or cancel call will still + receive child updates, which they can use to calculate and report + an accurate fill count (during this shutdown stage algos cannot + create, cancel or update children). A new IAlgoServices method, + is_shutting_down(), can be used to determine if an algo is + shutting down. + +## 2.6.2 +### User Visible Changes + - Fixed an issue in the ladder where in some cases the mini order book could not be brought up from a badge + - Fixed a rare race condition that could lead to erroneous limit enforcement + - Fixed an issue with the margin limits where an error could occur if an account name with more than 12 chars was used + +## 2.6.1 +### User Visible Changes + - Fixed an issue in the ladder where an error could occur when trying to change ladder settings for the first time + +## 2.6.0 +### User Visible Changes + - In the ladder made last trade more distinctive when overlayed on the volumn column + - In the ladder, corrected display of volume tool tip + - In the ladder, changed the consolidation of last trade to consider only the price ignoring aggressor changes + - Added an option for the Top Algo to delete itself if within N ticks from top of book + - Address a rare issue that could lead to an error report on UI exit + - Added margin risk limits + - Added the "Offset" algo. Offset prices a child algo at a parameterizable distance from the top of the book + - Avoided switching the current account and order type on open ladders when limits are changed +### Internal Changes + - Ensure that admin logins are always allowed to login, regardless of keycode status. + +## 2.5.0 +### User Visible Changes + - Added loss limit risk check + - Made algos, synthetics and user names private so that multiple users can share a single system privately. + - Allowed the mini order book defaults for column widths to be changed from the mini order book + - Allowed the mini order book to shrink to the minimum size that will be needed to display the selected columns + - Improved accuracy of the directional arrow when displaying last trades in the volumn column +## 2.4.0 +### User Visible Settings + - In the ladder, changed the last trade column to accumulate successive trades at the same price + - Fixed a bug in the order book where the right side ladder would display the top leve order's security rather then current row's + - Added OK, Cancel buttons to the security picker for ladder profiles or sounds + - Added ladder settings for the mini order book + - Added a safety check to guard against unintentional market crosses + - Improved the Queue Holder mode in the spreader: + - Added a Show Quantity, allowing the spreader to keep queue position of the trailing orders as Fills (of size Show Qty) happen + - Improved spreader performance when in Queue Holder mode +### Internal changes + - Suppressed order callbacks for completed/canceled orders. This should eliminate some bogus error logs by spreader orders. + - Addressed a potential concurrency issues with service initialization. + + +## 2.3.0 +### User Visible Changes + - Introduced multiple settings profiles for the ladder + - This allows multiple standard configuration for the ladder, optionally with security specific variations + - Made Cover order more independent from its hedging chidren: + - Cover continues to operate even if an hedging child is canceled + - When a cover is canceled it will detach from any running hedging children, instead of canceling them + - Changed Lean, Join and Cover algos to hide themselves in the ladder once they have completed their work + - Changed manual fills to appear in day PnL rather than in the SOD records + - Add buy/sell coloring to fill rows in fills window + - Streamlined the mini order book: + - Display of the mini order book popup is quicker + - Only exchange orders are displayed + - Update buttons are only displayed for orders that are under control of an algo with the update applying to the entire algo, not just the exchange order + - We can now select multiple rows to attach, detach, update or cancel multiple orders in a batch + - A checkbox column has been added to make clearer which rows are selected +### API Changes + - Enhanced the API to allow algos to implement custom cancel handling + - Allowed algos to control their visibility in the ladder through the API +### Internal Changes + - Added system requirements to Spark documentation + - Implemented keycodes + - Temporarily rejected stop and stop limit orders, pending bug fixes + +## 2.2.0 +### User Visible Changes + - Made our orders easier to spot in MBO display + - Changed middle-click on center column to recenter ladder and introduced Alt middle-click on center to bring up the MBO popup + - Fixed Net/Absolute radio button in risk admin UI + - Fixed double counting of spread legs in limits + - Removed expired fills from the system + - Improved handling of orders with undiscovered securities + - Added feedback to the ladder when the user attempts to middle click on bid/ask columns using an order that does not have parameters + - Fixed display of algo studio algo types in order book + - Hid net change setting in synthetic ladders + - Fixed a number of problems with filtering on the Fills form + - On the Lean algo, OnToward and Away are now calculated with respect to the opposite inside market at time of the order launch + - Iceberg Spreaders with queue holders are not erroneously cancelled after the first fill + - Added security symbol column to fills window + - Re-organized ladder settings dialog to make it clearer and easier to use + +## 2.1.4 +### User Visible Changes + - Fixed handling of cancel button in security picker + +## 2.1.3 +### User Visible Changes + - Fixed a simulator bug in the handling of 0 sized orders + +## 2.2.1 +### User Visible Changes + - Fixed order book form exception when display a spreader order for whichs the legs were not present yet + +## 2.1.1 +### User Visible Changes + - Added PIQ to GLBX Iceberg orders + - Corrected handling of stop limit orders + +## 2.1.0 +### User Visible Changes + - Added support for the GLBX Iceberg order type + - Allowed quick algo param edits by middle-clicking on either the bid/ask columns or a "favorite" button + - Added support for manual fills, either entered manually or imported from file. Manual fills are used only for P&L purposes, they have no impact on limits + - Allowed the LTQ and VAP values to be overlayed on the same ladder column + - Added day position information to the ladder + - Added PIQ to the mini order book + - Fixed a rare bug that could lead to server failure when requesting market data + - Fixed a bug that could cause incorrect price displays for certain types of synthetic securities + +## 2.0.5 +### User Visible Changes + - Fixed a bug in the handling of rejected QHO orders + - Implemented stricter position limit enforcement + - Fixed a bug that could cause server failure when trying to attach to already attached orders + +## 2.0.4 +### User Visible Changes + - Fixed performance regression in order manager + +### Internal changes + - Improved market data diagnostics for bad configurations + - Changed market data default buffer size + +## 2.0.3 +### Internal changes + - Improved backwards compatibility in UI settings + + +## 2.0.2 +### User Visible Changes + - Middle click the ladder price column to show the orders for that price level + - Middle click the bid or ask column in the ladder no longer sends an order + +### Internal changes + - Improved market by order performance under heavy load + - Fixed a concurrency bug in SIM + +## 2.0.0 +### User Visible Changes + - Support for attaching and detaching algos to existing orders + - Support for display and update of all parameters in running algos + - Streamlining of order badge decorations in ladder + - New order search/filtering algorithm for order book + - Simpler representation of complex algo chains in order book and mini order book + - Visual and usability improvements to mini order book + - Streamlining of algo parameter dialog in ladder + - New spreader queue holder behavior + - Visual improvements to the order book + - New server side API + - Improved admin UI performance + - Optimized PIQ rendering +### Internal changes + - Exchange simulator no longer requires daily sequence number reset + - Improved MD resilience to corrupted shared memory + - Native orders can now buffer updates/cancels when disconnected or pending first acknowledgment + - Improved settings manager tool output + - Added diagnostics in the event MD memory corruption is detected + - Added systems tests for join,lean, iceberg and spreader orders + - Made exchange order recovery more resilient in the presence of database loss + +## 1.6.2 +### User Visible Changes +### Exchange simulator + - Exchange simulator now now produce position in queue data + +## 1.6.0 +### User Visible Changes +#### New Features + - You can now view your order's position in queue in the ladder +#### Bug Fixes + - Fix a bug in the order popup in the ladder which could lead to a crash. + +## 1.5.9 +### User Visible Changes + - Fix for stunnel connections on Windows 7 + +## 1.5.8 +### User Visible Changes + - Fixed a bug where it was possible to crash the UI by entering an order through the order ticket if Enter was used to dismiss the dialog. + - Fixed a spreader reporting bug which could cause the server to crash if an algo was used to control certain types of synthetics + - Improved user message when the UI fails to login + - Integrated stunnel into UI to make VPN setup unnecessary in unsecured environments. +## 1.5.7 +### User Visible Changes + - New videos have been added to the manual describing the [Algo Studio](./bts_spark/Trading/_index.md#algo-studio) and [Spreader](./bts_spark/Spreader/_index.md) + - Fixed a bug that occasionally would cause windows to be position outside the visible screen on startup + - Fixed a bug in the order book form that would occasionally cause the Recreate Order option to be unavailable + - Added a confirmation step to Cancel All, Cancel Buys and Cancel Sells commands + - Fixed Aggressor coloring and ladder high/low coloring in the SIM execution gateway + - Added initial support for ICE market data + - In an effort to streamline the PnL report we've made the following changes: + - The PnL report will by default filter for Futures contracts only + - If you wish to see Spread contracts again you may change Security Type column filter + - The PnL report will now only show rows in which there is a position (net and/or day) + - The Exchange, Start PnL, Total Net Pos, and Total Net PnL columns are now hidden by default + - These columns can be restored by toggling their visibility within the PnL's Settings form + - A new Traded Today column has been added to the PnL + - Filtering on this column will allow a user to restrict the report to only show today's position +### Internal changes + - Improved organization of the shell notification architecture + - Added logging to help troubleshoot shell exit hang + +## 1.5.6 +### User Visible Changes + - Fixed a bug that could cause limits to be erroneously enforced + - Improved algo documentation + - Changed how the spreader uses net change + - Simplified trigger algo user interface +### Internal changes + - Defaulted to not recording sim market data + - Improved documentation build + - Added additional performance tracing + +## 1.5.5 + - Fixed Market View 'stale working orders' bug + +## 1.5.4 + - Avoided logging when warming up cache + +## 1.5.3 + - Fixed sounds startup issue + +## 1.5.2 + - Added better logging to AlgoDefinitionService + +## 1.5.1 + - Fixed missing securities in the Fills and P&L windows. + +## 1.5.0 +### User Visible Changes +#### New Features + - This release introduces a major new feature, the Algo Studio, a + set of tools allowing traders to create their own algos by + composing existing algos to express unique strategies. +#### User Interface Improvements + - Removed security key field from most grids + - Removed trade key field from time and sales grid + - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM + - Fixed the floating order book so that rows are no longer + highlighted after an order is modified + - Relocated quantity and price columns in floating order book immediately after the cancel column; users now can move the mouse a much shorter distance when modifying their orders + - The escape key now closes the floating order book +#### Bug Fixes + - Fixed the "Since Open" time filter to use the exchange open time rather than 8:30 AM + - Fixed a bug in the order book where sometimes parent orders would not update their last message column. + +#### Algos + - Added OCO Algo + - An OCO order creates a relationship between a child order and a 'stop' or 'other' order such that when one of these is cancelled, both cancel, or when one is filled, the other order's size is debited in the amount of the fill. Composing this order with Cover simulates scalping functionality +#### SDK + - Improved SDK documentation and usability + - Dynamic orders are now properly identified in the order book +#### Documentation + - Information on the Spark API has been added to the Spark manual + - The documentation has been updated and reorganized to make information easier to find +### Internal Changes + - Improved robustness of limit system test + - Fixed a bug in handling of built-in bts to user that could lead to failure to login as bts in old systems + - Improved market data subsystem to support security definition updates + - Fixed a startup race in market data that could lead to data corruption on startup + - Increased default order price precision to 8 digis as required by some CME products + +## 1.4.11 +### New Features + - Floating Order Book + - The floating order book provides a quick view of orders occupying a price level in the ladder + - Launch the Floating Order Book by middle-clicking a ladder badge + - Cancel orders by clicking on the red X in the Cancel column + - Quantity and Price modification + - Clicking on a row will select it, providing the option for changing your price and quantity + - Enter in a new value or use the up/down buttons to set a desired value + - Press the green checkbox to finalize your change and update the order +### SDK + - Improved SDK documentation and usability +### User Interface Improvements + - The following spreader quoting parameters have been deprecated: + - Hidden parameter + - Price Type setting of the Conditional parameter +### Bug Fixes + - Fixed a limit enforcement problem that could lead to 0 sized orders being sent to the exchange + +## 1.4.10 +### Bug Fixes + - Removed duplicate entries in performance log + +## 1.4.9 +### SDK + - Added ticker events to the order API +### Performance Improvements + - Significantly improved hedging speed +### Bug Fixes + - Fixed a visual oddity in the order book UI when using High DPI displays + +## 1.4.8 +### Marketdata + - Additional trade details for CME ticker + +## 1.4.7 +### Bug Fixes + - Corrected FIX tag 1028, ManualOrderIndicator, when orders are triggered by algos + +## 1.4.6 +### Ladder Usability Improvements + - The ladder can now be zoomed in/out according to a user's preference + - The zoom slider can be enabled from Ladder Form -> Settings button -> Left Pane tab -> check Zoom Slider checkbox + - The zoom functionality can also be performed via hotkey and mouse wheel combinations + - Zoom In = CTRL + Mouse wheel up + - Zoom Out = CTRL + Mouse wheel down + + - Reset zoom = CTRL + Mouse wheel click or double click on the zoom slider +### Exchange simulator + - Improved the exchange simulator to track real market data more closely +### Bug Fixes + - Fixed a UI crash in some cases when attempting to sort the order book by time + +## 1.4.5 + - Fixed entitlement validation for ICS spreads + - Tuned performance logging + +## 1.4.4 + +### Performance Improvements + - Reduced performance logging activity + +## 1.4.3 + +### Ladder Usability Improvements + - Controls found in Left Pane of the ladder can now be hidden via the checkboxes found under Ladder Form -> Settings button -> Left Pane tab + - The Left Pane is now scrollable with the mouse wheel when there isn't enough vertical space to accomodate the entire form + - The Left Pane can now grown and shrunk horizontally via the splitter between the left pane and the main ladder area +### Performance Improvements + - Requoting and hedging latency has been reduced by up to 30% +### Software Development Kit (SDK) Improvements + - The API now enforces authentication +### Bug Fixes + - The Market View form now honors filters when new securities are added + +## 1.4.2 + +### User Interface Improvements + - When creating a synthetic from the Market View window, securities are now added to the Create Synthetic dialog in the same sort order as they appear in grid +### Bug Fixes + - Shell no longer crashes when removing a security from the synthetics window + - It is now possible to create a new synthetic using the same name as a previously deleted synthetic +### SDK Improvements + - Improved Client and Server SDK clarity and documentation +### Performance Improvements + - Synthetic calculation speed was improved by 400%. +### Risk / Entitlement System + - Risk Admin UI + - Spark users now have separate Trading, RiskAdmin, and/or MDAdmin permissions + - Spark users can now only add other users or accounts if permissioned to do so. + - Market Data Entitlement + - Automated market data reporting + + +## 1.4.1 + +### Tabs + - Tabs now shrink and expand to make better use of horizontal space +### Bug Fixes + - Fixed a bug that could cause excessive CPU usage when a connection broke + - Fixed a layout bug in hedging/requoting performance reports + - Fixed account name mismatching bug for old fills +### Absolute Position limits + - Positions can now be netted or absolute for purposes of limit enforcing + +## 1.4.0 + +### Speed Enhancements + - Improved requoting and hedging performance + - Improved order book form performance +### Server Side SDK + - Added a beta version of the server side SDK +### Front End + - Added status bars to all UI grids +### Reporting + - Added reporting of hedging and requoting performance + +## 1.3.8 + +### Speed Enhancements + - Further speed enhancements +### Conditional (new quoting parameter) + - Reduces re-quoting updates by only quoting if N ticks away from the opposite inside market. + - Quotes are canceled when it gets further away. + - "Price Type" dictates if this logic applies to the quoting market or to the synthetic spread market. + +## 1.3.7 + +### Net Change pricing + - The ability to price synthetics based off of net change + +## 1.3.5 + +### Speed Enhancements + - Further speed enhancements +### Separation of implied and direct market data + - Viewing within a market view will now show 3 columns + - Direct + - Implied + - Merged + - Ability to configure the market data size in a ladder as the following + - Direct + - Implied + - Merged +### Synthetic creation option to choose Merged or Direct + - The ability to choose Merged or Direct per leg when creating a synthetic +### Volume at price + - Within a ladder, you can now see a volume at price graph + - This is configurable from a ladder's settings as well +### Customized settings in all windows + - All windows now contain a settings page where grid settings (font color, size, etc) are applied + - These settings can be saved on a per-window basis or as a Default for newly-launched windows + + +## 1.3.1 Through 1.3.4 + +### Speed Enhancements + - Further speed enhancements + +## 1.2 + +### Market View + - Synthetic future leg working orders are now shown + +### Order Book + - Many visual facets of the Order Book grid can now be customized + - The Order Book settings page can be accessed from the gears icon in the Order Book toolbar or from the right-click menu + - The Expand/Collapse All button has been separated into two different buttons on the toolbar + +### Sound Alerts + - Sounds alerts can now be configured for various order events + - Configure sounds under the Sound/Notification Triggers on the Order Book settings page + +### Fills + - Newly launched fill windows will filter out start-of-day records by default + +### PnL + - Prices are now formatted with penny precision + - Day PnL has been added to the Totals footer at the bottom of the window + +### Ladder + - Order badges now have been improved to communicate a variety of order state + - Background color now indicates order side + - Child orders will display a one-character abbreviation to their parent order enclosed in a rectangle; the rectangle will have a fill color matching the parent order + - Border color around badge will match the associated algo color + - Exchange orders will present with a solid dot in the badge's top-right corner + - When multiple orders reside at the same level, a solid triangle will be present in badge's bottom-right corner; all other badge decorations will not be visible in this state + - Hedge orders will present with a vertical line inside the badge's left border + - Trigger orders, once triggered, will no longer be shown in the ladder + - Session High and Low visual indicators have been added to the Price column + - Session range is now indicated in the Price column + - A button reflecting position has been added above the quantity field + - This button reflects the position for the currently selected account + - Pressing the button will copy the position size to the quantity field + - Order quantity button size values are now customizable + - Default size preset values can now be changed, as well as added or removed + - This can be configured per ladder instance (i.e. per security) by making use of the Custom tab + - Synthetic ladders that were saved as part of a workspace are now restored on startup + +### Synthetics + - Hedge Ratio parameter has been renamed to Lean Qty Factor + - Spreader now includes a Hidden mode parameter + - A quoting leg can be hidden, ie an order will not be sent out until the market crosses the computed quoting price. When that happens, the quote is sent out as an IOC order. + +### Algos + - Trigger orders now can contain a Trigger Exit parameter based on time or price; once the exit condition has been met the Trigger order will cancel + - IOC/FAK order type added + - Cover order type added + - Canceling a synthetic order no longer cancels any working hedge orders + +### General + - A manual page has been added to the launcher Help menu + - Various help buttons and tooltips were added throughout the application + - Various cash per point values updated + - Time-based grid filters now have tick up/down buttons + - Numerous performance improvements and stability enhancements + - Automated position and Order Book maintenance during daily recycle + - Individual fills will be compacted into the Start of Day position records + - Orders from the day before the recycle will be deleted + + +## 1.1 + +### 1.1.22 +- Order Book: Orders in Error status can now be recreated +- Order Book: Orders containing child orders will now be collapsed by default. +- Order Book: Expand / Collapse All button added to the right-click menu and window action pane, denoted by ▲ icon +- Order Book: Symbol column added to allow for filtering based on group symbol +- Time filters now have a quick Set Last Hour hyperlink which will set the Period Begin filter to (Now - 1 hour) + +### 1.1.20 +- Update CME market data handler for price precision extension. + https://www.cmegroup.com/confluence/display/EPICSANDBOX/Price+Precision+Extension + +### 1.1.8 +- Enabled wild cards in risk management UI +- Fixed spreader order updates + +### 1.1.7 +- Fixed spread leg price fill +- Fixed HO cash per point value + +### 1.1.6 +- Fixed occasional crash when filtering fills +- Fixed several cash per point multipliers +- Colored time of sales row with aggressor side +- Iceberg orders now cancel (rather than an error) when a child is canceled + +### 1.1.0 +- Added per user self match protection, location and self match protection FIX tag settings +- Implemented a new "Trigger Order" algo +- Corrected tick formatting for a number of products +- Added the ability to recreate canceled orders +- Added leg fills to facilitate futures based PnL +- PnL report now has PnL columns calculated based on your Start of Day, current day, and total position +- Start, Day and Total PnL columns are painted with a red or green background color based on if the pnl value is negative or positive respectively +- Corrected cash per point values, used in pnl calculations, for a number of products +- PnL report will now remember any customizations you make to filtering and/or sorting criteria + From fd89241611ea01b7eadfd9f9c8beb0a1bb73486b Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 26 May 2020 11:49:29 -0400 Subject: [PATCH 12/23] Updated externals pointer --- externals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals b/externals index 38945c5f4..8dfc6caa7 160000 --- a/externals +++ b/externals @@ -1 +1 @@ -Subproject commit 38945c5f49c5daf7e943e7f185e83c2bcec120f9 +Subproject commit 8dfc6caa7ed4946e9664f8bbb81934aaf2e98d76 From 2609663d3e09a5f6621956adf7670d2cc4e77c12 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 26 May 2020 11:29:22 -0400 Subject: [PATCH 13/23] Updated setup_builds to work even if its run outside the tree. --- tools/setup_builds.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/setup_builds.sh b/tools/setup_builds.sh index 4eefc37e8..66d7a09c4 100755 --- a/tools/setup_builds.sh +++ b/tools/setup_builds.sh @@ -4,6 +4,10 @@ SRC_ROOT=$DIR/../ mkdir -p $SRC_ROOT/build/ BUILD_ROOT=`readlink -f $SRC_ROOT/build` +rm $SRC_ROOT/src/web/ui/node_modules +rm $SRC_ROOT/src/web/api/node_modules +ln -s $SRC_ROOT/externals/npm/node_modules $SRC_ROOT/src/web/ui/node_modules +ln -s $SRC_ROOT/externals/npm/node_modules $SRC_ROOT/src/web/api/node_modules rm -rf $BUILD_ROOT/clang_debug mkdir $BUILD_ROOT/clang_debug cd $BUILD_ROOT/clang_debug From 01b9ff6b472ff581507d9bc3a9832434ec48c983 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 26 May 2020 12:28:35 -0400 Subject: [PATCH 14/23] Dropped celoxica --- src/server/sparkd/CMakeDeps.cmake | 2 +- src/server/sparkd/cmds/TestCeloxica.cpp | 26 --- src/server/sparkd/cmds/TestCeloxica.h | 20 -- src/server/sparkd/main.cpp | 2 - .../md/platforms/celoxica/CXListener.cpp | 88 -------- .../sparkd/md/platforms/celoxica/CXListener.h | 61 ----- .../sparkd/md/platforms/celoxica/CXMain.cpp | 83 ------- .../sparkd/md/platforms/celoxica/CXMain.h | 49 ---- .../md/platforms/celoxica/CXSecurityIndex.h | 21 -- .../sparkd/md/platforms/celoxica/celoxica.h | 15 -- .../md/platforms/celoxica/tests/cx_tests.cpp | 210 ------------------ tools/celoxica.cmake | 22 -- 12 files changed, 1 insertion(+), 598 deletions(-) delete mode 100644 src/server/sparkd/cmds/TestCeloxica.cpp delete mode 100644 src/server/sparkd/cmds/TestCeloxica.h delete mode 100644 src/server/sparkd/md/platforms/celoxica/CXListener.cpp delete mode 100644 src/server/sparkd/md/platforms/celoxica/CXListener.h delete mode 100644 src/server/sparkd/md/platforms/celoxica/CXMain.cpp delete mode 100644 src/server/sparkd/md/platforms/celoxica/CXMain.h delete mode 100644 src/server/sparkd/md/platforms/celoxica/CXSecurityIndex.h delete mode 100644 src/server/sparkd/md/platforms/celoxica/celoxica.h delete mode 100644 src/server/sparkd/md/platforms/celoxica/tests/cx_tests.cpp delete mode 100644 tools/celoxica.cmake diff --git a/src/server/sparkd/CMakeDeps.cmake b/src/server/sparkd/CMakeDeps.cmake index 75ed272cd..884d760c5 100644 --- a/src/server/sparkd/CMakeDeps.cmake +++ b/src/server/sparkd/CMakeDeps.cmake @@ -1 +1 @@ -set(sources algo/AlgoDefinitionServiceServer.cpp;cmds/AdminReport.cpp;cmds/AutoCert.cpp;cmds/Benchmark.cpp;cmds/CmdRegistry.cpp;cmds/ConfigCheck.cpp;cmds/FIXSim.cpp;cmds/Help.cpp;cmds/KeyCode.cpp;cmds/Md.cpp;cmds/ParseHistoricalFIX.cpp;cmds/PrintHedgeOrders.cpp;cmds/QuickTest.cpp;cmds/Run.cpp;cmds/RunSim.cpp;cmds/Span.cpp;cmds/Test.cpp;cmds/TestCeloxica.cpp;cmds/Web.cpp;dspark/mirage/quick_queue/quick_queue.cpp;exchange_sim/ExchangeSim.cpp;exchange_sim/ExchangeSimApplication.cpp;exchange_sim/book/Book.cpp;exchange_sim/book/ExchangeSim.proto;exchange_sim/book/Order.cpp;exchange_sim/book/OrderMatcher.cpp;exchange_sim/book/book_transform.cpp;exchange_sim/tests/test_book_transform.cpp;http/ApiGateway.cpp;http/MultipartFormDecoder.cpp;http/WebServer.cpp;http/tests/MultiPartFormTests.cpp;main.cpp;md/ChannelVolume.cpp;md/MarketDataAuxiliaryServiceServer.cpp;md/VolumeAtPriceState.cpp;md/platforms/IMDPlatform.cpp;md/platforms/celoxica/CXListener.cpp;md/platforms/celoxica/CXMain.cpp;md/platforms/celoxica/tests/cx_tests.cpp;md/platforms/ice_onixs/ICEListener.cpp;md/platforms/ice_onixs/ICEMain.cpp;md/platforms/ice_onixs/tests/ice_tests.cpp;md/platforms/mdp3_onixs/MDP3Listener.cpp;md/platforms/mdp3_onixs/MDP3Main.cpp;md/platforms/mdp3_onixs/tests/mdp3_tests.cpp;md/run_md.cpp;position/IPositionObserver.cpp;position/MarginServiceCore.cpp;position/MarginServiceServer.cpp;position/PositionAggregator.cpp;position/PositionMap.cpp;position/PositionServicePNLHelper.cpp;position/PositionServiceServer.cpp;position/import/BasePositionServiceServer.cpp;position/import/DownloadCommonStateMachine.cpp;position/import/DownloadWindow.cpp;position/import/MoneyFileServiceServer.cpp;position/import/parsing/gmi_parser.cpp;position/import/parsing/money_parser.cpp;position/import/parsing/parser_common.cpp;position/tests/PositionTests.cpp;position/tests/position_tests_internal.cpp;subprocess/SubProcessRunner.cpp;support/ErrorReportService.cpp;support/ShellLatencyServer.cpp;user/AdminServiceServer.cpp;user/AuthServiceServer.cpp;user/tests/admin_service_tests.cpp) \ No newline at end of file +set(sources algo/AlgoDefinitionServiceServer.cpp;cmds/AdminReport.cpp;cmds/AutoCert.cpp;cmds/Benchmark.cpp;cmds/CmdRegistry.cpp;cmds/ConfigCheck.cpp;cmds/FIXSim.cpp;cmds/Help.cpp;cmds/KeyCode.cpp;cmds/Md.cpp;cmds/ParseHistoricalFIX.cpp;cmds/PrintHedgeOrders.cpp;cmds/QuickTest.cpp;cmds/Run.cpp;cmds/RunSim.cpp;cmds/Span.cpp;cmds/Test.cpp;cmds/Web.cpp;dspark/mirage/quick_queue/quick_queue.cpp;exchange_sim/ExchangeSim.cpp;exchange_sim/ExchangeSimApplication.cpp;exchange_sim/book/Book.cpp;exchange_sim/book/ExchangeSim.proto;exchange_sim/book/Order.cpp;exchange_sim/book/OrderMatcher.cpp;exchange_sim/book/book_transform.cpp;exchange_sim/tests/test_book_transform.cpp;http/ApiGateway.cpp;http/MultipartFormDecoder.cpp;http/WebServer.cpp;http/tests/MultiPartFormTests.cpp;main.cpp;md/ChannelVolume.cpp;md/MarketDataAuxiliaryServiceServer.cpp;md/VolumeAtPriceState.cpp;md/platforms/IMDPlatform.cpp;md/platforms/ice_onixs/ICEListener.cpp;md/platforms/ice_onixs/ICEMain.cpp;md/platforms/ice_onixs/tests/ice_tests.cpp;md/platforms/mdp3_onixs/MDP3Listener.cpp;md/platforms/mdp3_onixs/MDP3Main.cpp;md/platforms/mdp3_onixs/tests/mdp3_tests.cpp;md/run_md.cpp;position/IPositionObserver.cpp;position/MarginServiceCore.cpp;position/MarginServiceServer.cpp;position/PositionAggregator.cpp;position/PositionMap.cpp;position/PositionServicePNLHelper.cpp;position/PositionServiceServer.cpp;position/import/BasePositionServiceServer.cpp;position/import/DownloadCommonStateMachine.cpp;position/import/DownloadWindow.cpp;position/import/MoneyFileServiceServer.cpp;position/import/parsing/gmi_parser.cpp;position/import/parsing/money_parser.cpp;position/import/parsing/parser_common.cpp;position/tests/PositionTests.cpp;position/tests/position_tests_internal.cpp;subprocess/SubProcessRunner.cpp;support/ErrorReportService.cpp;support/ShellLatencyServer.cpp;user/AdminServiceServer.cpp;user/AuthServiceServer.cpp;user/tests/admin_service_tests.cpp) \ No newline at end of file diff --git a/src/server/sparkd/cmds/TestCeloxica.cpp b/src/server/sparkd/cmds/TestCeloxica.cpp deleted file mode 100644 index 251acde6d..000000000 --- a/src/server/sparkd/cmds/TestCeloxica.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "TestCeloxica.h" - -#include "server/sparkd/md/platforms/celoxica/CXMain.h" -#include "server/sparkd/md/platforms/celoxica/CXListener.h" - -namespace bts -{ -namespace cmd -{ - -int TestCeloxica::execute(const std::vector&) -{ - bts::md::CXMain main; - main.initialize(); - return 0; -} - -std::string TestCeloxica::help() -{ - return "\t test BTS <> Celoxica integration \n"; -} - -} -} - - diff --git a/src/server/sparkd/cmds/TestCeloxica.h b/src/server/sparkd/cmds/TestCeloxica.h deleted file mode 100644 index 8e2b2bd61..000000000 --- a/src/server/sparkd/cmds/TestCeloxica.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once - -#include "ICmd.h" - -namespace bts -{ -namespace cmd -{ - -class TestCeloxica : public ICmd -{ -public: - int execute(std::vector const &args); - std::string help(); -}; - -} -} - - diff --git a/src/server/sparkd/main.cpp b/src/server/sparkd/main.cpp index 69f5799ce..d8c2dcaf4 100644 --- a/src/server/sparkd/main.cpp +++ b/src/server/sparkd/main.cpp @@ -19,7 +19,6 @@ #include "server/sparkd/cmds/RunSim.h" #include "server/sparkd/cmds/Span.h" #include "server/sparkd/cmds/Test.h" -#include "server/sparkd/cmds/TestCeloxica.h" #include "server/sparkd/cmds/Web.h" using namespace bts; @@ -32,7 +31,6 @@ int main(int argc, char **argv) { REGISTER(Help); REGISTER(Run); REGISTER(Md); - REGISTER(TestCeloxica); REGISTER(ConfigCheck); REGISTER(KeyCode); REGISTER(RunSim); diff --git a/src/server/sparkd/md/platforms/celoxica/CXListener.cpp b/src/server/sparkd/md/platforms/celoxica/CXListener.cpp deleted file mode 100644 index dc4c43f75..000000000 --- a/src/server/sparkd/md/platforms/celoxica/CXListener.cpp +++ /dev/null @@ -1,88 +0,0 @@ -#include "CXListener.h" - -#include "lib/utils/defer.h" -#include "lib/utils/CallTimer.h" -#include "lib/utils/helper_macros.h" -#include - -namespace celoxica { namespace gmac {} } -#include "celoxica.h" -using namespace celoxica::gmac; -using namespace std; - -namespace bts -{ -namespace md -{ - -CXListener::CXListener(CXSecurityIndex& index, MDProducer& producer, SecurityIDRecorder& recorder, - co2::SettlementRecorder& settles, std::vector channels, - utils::Dispatcher& disp) : - _index(index), - _producer(producer), - _packet_arrived(), - _latest_sequence(0), - _security_recorder(recorder), - _settlement_recorder(settles), - _symbol_filter_storage(), - _channels(channels), - _background(disp), - _security_recorder_input_timer(disp, 900, [&]() { dequeue_securities(); }), - _security_recorder_input(), - _concurrency_monitor(0), - _book_updates() - { - _book_updates.reserve(32); - _security_recorder_input_timer.start(); - } - -CXListener::~CXListener() -{ - _security_recorder_input_timer.stop(); -} - -void CXListener::add_software_filter(const std::string& symbol) -{ - _symbol_filter_storage.push_back(symbol); - //_symbol_filter.clear(); - //for (const auto& str : _symbol_filter_storage) { - // _symbol_filter.insert(onixs::StringRef(str)); - //} -} - -void CXListener::on_GMACMessageOrderDepthV3(const GMACMessageOrderDepthV3*) -{ -} - - -void CXListener::dequeue_securities() -{ -} - -void CXListener::flush_books() -{ - // This is called at the end of the packet - // Write all book updates to shared memory and reset for the next packet - //for (auto& entry : _book_updates) { - // // bbo first - // uint16_t sequence = (_latest_sequence & 0xFFFF); - // entry.handle.update_bbo(_packet_arrived, entry.bids[0], entry.asks[0], sequence); - - // // Perf Note: the remainder of the book update could be done (carefully) with a memcpy - // for (size_t x = 1; x < COCONUT_MAX_DEPTH; ++x) { - // entry.handle.update_bid(_packet_arrived, entry.bids[x], x); - // entry.handle.update_ask(_packet_arrived, entry.asks[x], x); - // } - //} - //// Reset pending updates - //_book_updates.clear(); -} - -} - -md::CXListener::BookData::BookData(MDProducerHandle & handle) : handle(handle), bids(), asks() -{ -} - -}//namespace - diff --git a/src/server/sparkd/md/platforms/celoxica/CXListener.h b/src/server/sparkd/md/platforms/celoxica/CXListener.h deleted file mode 100644 index ad2afde4e..000000000 --- a/src/server/sparkd/md/platforms/celoxica/CXListener.h +++ /dev/null @@ -1,61 +0,0 @@ -#pragma once - -#include "lib/utils/bts_no_copy.h" -#include "lib/md/coconut2.h" -#include "lib/utils/Dispatcher.h" -#include "server/sparkd/md/platforms/celoxica/CXSecurityIndex.h" - -#include -#include -#include - -namespace bts -{ -namespace md -{ -struct GMACMessageOrderDepthV3; - -class CXListener -{ -public: - CXListener(CXSecurityIndex&, MDProducer&, SecurityIDRecorder&, - co2::SettlementRecorder&, std::vector, utils::Dispatcher&); - ~CXListener(); - - void add_software_filter(const std::string& symbol); - - void on_GMACMessageOrderDepthV3(const GMACMessageOrderDepthV3*); - -private: - void flush_books(); - void dequeue_securities(); - -private: - BTS_NO_COPY(CXListener); - - CXSecurityIndex& _index; - MDProducer& _producer; - utils::TimeStamp _packet_arrived; - uint64_t _latest_sequence; - SecurityIDRecorder& _security_recorder; - co2::SettlementRecorder& _settlement_recorder; - std::vector _symbol_filter_storage; - std::vector _channels; - utils::Dispatcher& _background; - utils::DispatcherTimer _security_recorder_input_timer; - tbb::concurrent_queue _security_recorder_input; - std::atomic _concurrency_monitor; - - struct BookData { - BookData(MDProducerHandle& handle); - MDProducerHandle handle; - PriceSize bids[10]; - PriceSize asks[10]; - }; - - std::vector _book_updates; -}; - - -}}//namespace - diff --git a/src/server/sparkd/md/platforms/celoxica/CXMain.cpp b/src/server/sparkd/md/platforms/celoxica/CXMain.cpp deleted file mode 100644 index 1c39dcd72..000000000 --- a/src/server/sparkd/md/platforms/celoxica/CXMain.cpp +++ /dev/null @@ -1,83 +0,0 @@ -#include "CXMain.h" - -#include "lib/md/cme/MDP3Utils.h" -#include "lib/config/config.h" -#include "lib/md/coconut2.h" -#include "lib/os/os.h" -#include "lib/utils/Dispatcher.h" -#include "lib/utils/proto_helper.h" -#include "lib/utils/helper_macros.h" - -#include "lib/config/protos/MarketData.pb.h" -#include "lib/config/protos/system.pb.h" - -namespace celoxica { namespace gmac {} } -#include "celoxica.h" - -extern "C" -{ -#define __retcode_start__ -#define __retcode_end__ -} - -#include -#include - -using namespace std; -using namespace celoxica::gmac; - -namespace bts -{ -namespace md -{ - -void run_cx_server(UserSymbol* psyms, size_t symcount) -{ - CXMain main; - vector symbols; - for(size_t x = 0; x < symcount; ++x) { - symbols.push_back(psyms[x]); - } - main.run(symbols); -} - -CXMain::CXMain() : - _producer(co2::PLATFORM_CELOXICA), - _security_recorder({}), - _settlement_recorder(co2::PLATFORM_CELOXICA), - _listeners() -{ -} - -CXMain::~CXMain() {} - -void CXMain::initialize() -{ - //celoxica::gmac::GMACIdentify(stderr); - //const auto& options = config::get(); - -} - - -void CXMain::run(std::vector& symbols) -{ - bts::md::await_cme_config(); - initialize(); - - parse_channels(symbols); - // const auto& channels = parse_channels(symbols); -} - - - -std::unique_ptr CXMain::prepare_listener(const std::string& channel, const CMEChannel&) -{ - UNUSED(channel); - return std::unique_ptr(); -} - - -} -} - - diff --git a/src/server/sparkd/md/platforms/celoxica/CXMain.h b/src/server/sparkd/md/platforms/celoxica/CXMain.h deleted file mode 100644 index 24eb1e80f..000000000 --- a/src/server/sparkd/md/platforms/celoxica/CXMain.h +++ /dev/null @@ -1,49 +0,0 @@ -#pragma once - -#include "lib/utils/bts_no_copy.h" -#include "lib/md/coconut2.h" -#include "server/sparkd/md/platforms/celoxica/CXListener.h" -#include "server/sparkd/md/platforms/celoxica/CXSecurityIndex.h" - -#include -#include -#include - -namespace bts -{ -namespace md -{ -void run_cx_server(UserSymbol* sym, size_t symcount); - -struct CMEChannel; -class CXListener; - -/* - * The CX provider is very simple. 1 CXMain maps to 1 Celoxica Queue, which maps to 1 thread and one bound CPU. - * Control starts in CXMain which starts the thread, binds to a cpu, provides a (currently unused) list of all the symbols we need - * prepare_handler configures an exchange channel to be owned by this queue, and prepare_listener sets up thing that sees - * all callbacks which maps the exchange id to the MDProducerHandle and writes to shared mem - */ -class CXMain -{ -public: - CXMain(); - ~CXMain(); - - void run(std::vector&); //call initialize, start the pump - void initialize(); //set up channels, etc - - std::unique_ptr prepare_listener(const std::string& channel, const CMEChannel&); - -private: - BTS_NO_COPY(CXMain); - - CXSecurityIndex _index; - MDProducer _producer; - SecurityIDRecorder _security_recorder; - co2::SettlementRecorder _settlement_recorder; - std::vector> _listeners; -}; - -}}//namespace - diff --git a/src/server/sparkd/md/platforms/celoxica/CXSecurityIndex.h b/src/server/sparkd/md/platforms/celoxica/CXSecurityIndex.h deleted file mode 100644 index 6d3076ac5..000000000 --- a/src/server/sparkd/md/platforms/celoxica/CXSecurityIndex.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include "lib/md/SecurityIndex.h" -#include - -namespace bts -{ -namespace md -{ - -struct CXSecurityData -{ - CXSecurityData(uint32_t id, MDProducerHandle& h) : id(id), handle(h) {} - uint32_t id; // exchange id - MDProducerHandle handle; -}; - -using CXSecurityIndex = ConcurrentSecurityIndex; - -}}//namespace - diff --git a/src/server/sparkd/md/platforms/celoxica/celoxica.h b/src/server/sparkd/md/platforms/celoxica/celoxica.h deleted file mode 100644 index 209383fa1..000000000 --- a/src/server/sparkd/md/platforms/celoxica/celoxica.h +++ /dev/null @@ -1,15 +0,0 @@ -#pragma once - -namespace celoxica -{ -namespace gmac -{ - -#include "celoxica/gmac.h" -#include "celoxica/gmac_template_v3.h" -#include "celoxica/gmac_info.h" - -} -} - - diff --git a/src/server/sparkd/md/platforms/celoxica/tests/cx_tests.cpp b/src/server/sparkd/md/platforms/celoxica/tests/cx_tests.cpp deleted file mode 100644 index 0358d1741..000000000 --- a/src/server/sparkd/md/platforms/celoxica/tests/cx_tests.cpp +++ /dev/null @@ -1,210 +0,0 @@ -// #include "catch/catch.hpp" - -// #include "lib/config/config.h" -// #include "lib/config/protos/MarketData.pb.h" - -// #include -// #include -// #include -// #include - -// #include "../MDP3Utils.h" -// #include "../onixs.h" - -// using namespace bts::md; -// using namespace std; - - -// namespace bts { -// namespace md { - -// map create_feed_engine_settings(const std::vector& channels); -// const CMEOptions::CMEChannel channel_settings_for(const string& id); - -// namespace test { - -// vector test_channels(int count, ...) { -// // Doing this the C way because I still haven't updated VS -// vector result; -// va_list ap; -// va_start(ap, count); -// for (int x = 0; x < count; ++x) { -// const char* val = va_arg(ap, char*); -// CMEChannel temp; -// temp.id = val; -// result.push_back(temp); -// } -// va_end(ap); -// return result; -// } - - -// TEST_CASE("mdp3_tests","[md]") { -// SECTION("test_defaults") { -// config::internal::initialize_for_test("CMEOptions {}"); - -// vector channels = test_channels(1, "310"); -// auto result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 0); - -// channels = test_channels(2, "310", "311"); -// result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 0); - -// channels = test_channels(4, "310", "311", "400", "412"); -// result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 0); - -// REQUIRE(!channel_settings_for("310").has_feed_engine()); -// REQUIRE(!channel_settings_for("311").has_feed_engine()); -// REQUIRE(!channel_settings_for("315").has_feed_engine()); -// } - -// SECTION("test_segregate_futures") { -// config::internal::initialize_for_test( -// "CMEOptions {\n" -// " value {\n" -// " feed_engine {\n" -// " name: 'default'\n" -// " }\n" -// " feed_engine {\n" -// " name: 'futures'\n" -// " num_threads: 4\n" -// " }\n" -// " # Futures\n" -// " channel {\n" -// " id: '310'\n" -// " id: '312'\n" -// " feed_engine: 'futures'\n" -// " }\n" -// " # Options\n" -// " channel {\n" -// " id: '311'\n" -// " id: '313'\n" -// " id: '315'\n" -// " feed_engine: 'default'\n" -// " }\n" -// " }\n" -// "}"); - -// vector channels = test_channels(1, "310"); -// auto result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 1); -// REQUIRE(result.begin()->first == "futures"); -// REQUIRE(result.begin()->second.threadsCount() == 4); - -// channels = test_channels(1, "311"); -// result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 1); -// REQUIRE(result.begin()->first == "default"); -// REQUIRE(result.begin()->second.threadsCount() == 1); - -// channels = test_channels(2, "311", "310"); -// result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 2); -// REQUIRE(result["default"].threadsCount() == 1); -// REQUIRE(result["futures"].threadsCount() == 4); - -// // Test channels not listed in config -// channels = test_channels(2, "317", "318"); -// result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 0); -// } - -// SECTION("test_no_default") { -// config::internal::initialize_for_test( -// "CMEOptions {\n" -// " value {\n" -// " feed_engine {\n" -// " name: 'futures'\n" -// " num_threads: 4\n" -// " }\n" -// " # any channel not listed will use the default feed engine\n" -// " # Futures\n" -// " channel {\n" -// " id: '310'\n" -// " id: '312'\n" -// " feed_engine: 'futures'\n" -// " }\n" -// " # Options\n" -// " channel {\n" -// " id: '311'\n" -// " id: '313'\n" -// " id: '315'\n" -// " use_tcp_replay: false\n" -// " }\n" -// " }\n" -// "}"); - -// vector channels = test_channels(1, "310"); -// auto result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 1); -// REQUIRE(result.begin()->first == "futures"); -// REQUIRE(result.begin()->second.threadsCount() == 4); - -// channels = test_channels(1, "311"); -// result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 0); - -// channels = test_channels(2, "311", "310"); -// result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 1); -// REQUIRE(result["futures"].threadsCount() == 4); - - -// REQUIRE(channel_settings_for("310").use_tcp_replay() == true); -// REQUIRE(channel_settings_for("311").use_tcp_replay() == false); -// REQUIRE(channel_settings_for("315").use_tcp_replay() == false); -// } - -// SECTION("test_one_thread_each") { -// config::internal::initialize_for_test( -// "CMEOptions {\n" -// " value {\n" -// " channel {\n" -// " id: '*'\n" -// " }\n" -// " }\n" -// "}\n"); - -// vector channels = test_channels(1, "310", "311"); -// auto result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 0); - -// const auto& settings = channel_settings_for("311"); -// REQUIRE(!settings.has_feed_engine()); -// } - -// SECTION("test_common_futures_thread") { -// config::internal::initialize_for_test( -// "CMEOptions {\n" -// " value {\n" -// " feed_engine {\n" -// " name: 'futures'\n" -// " num_threads: 4\n" -// " }\n" -// " channel {\n" -// " id: '310'\n" -// " feed_engine: 'futures'\n" -// " udp_socket_buffer_size: 1234\n" -// " }\n" -// " channel {\n" -// " id: '*'\n" -// " }\n" -// " }\n" -// "}\n"); - -// vector channels = test_channels(6, "310", "311", "315", "100", "10", "42"); -// auto result = create_feed_engine_settings(channels); -// REQUIRE(result.size() == 1); -// result = create_feed_engine_settings(test_channels(1, "315")); -// REQUIRE(result.size() == 0); - -// REQUIRE(!channel_settings_for("311").has_feed_engine()); -// REQUIRE(channel_settings_for("310").has_feed_engine()); -// REQUIRE(channel_settings_for("310").udp_socket_buffer_size() == 1234); -// REQUIRE(channel_settings_for("311").has_udp_socket_buffer_size() == false); -// } -// } - -// }}}//namespace diff --git a/tools/celoxica.cmake b/tools/celoxica.cmake deleted file mode 100644 index 72e114d84..000000000 --- a/tools/celoxica.cmake +++ /dev/null @@ -1,22 +0,0 @@ -cmake_minimum_required(VERSION 3.5) - -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libbase.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libutils.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libfix_lib.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libclxlog.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libade_version.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libade.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libclx.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libgmac_version.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libgmac.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libcputimestamp.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libclxconfig.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libconfigfile.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libac.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/librc.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/liblldt.so") -LIST(APPEND CELOXICA_LIB "${SPARK_LIB}/celoxica/libregister.so") - -file(COPY ${CELOXICA_LIB} DESTINATION ${CMAKE_BINARY_DIR}/src/server/sparkd) - - From 86ecf698204668da1247133911f4a34b4e113887 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Thu, 28 May 2020 11:53:51 -0400 Subject: [PATCH 15/23] Updated external subrepos --- docker/linux | 2 +- externals | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/linux b/docker/linux index 0afd5e92d..0df20ec20 160000 --- a/docker/linux +++ b/docker/linux @@ -1 +1 @@ -Subproject commit 0afd5e92de1b3c93df9d26f872409abc5fa29ea8 +Subproject commit 0df20ec20afaedf4077701548bc9bcb1f04647bf diff --git a/externals b/externals index 8dfc6caa7..a558597a1 160000 --- a/externals +++ b/externals @@ -1 +1 @@ -Subproject commit 8dfc6caa7ed4946e9664f8bbb81934aaf2e98d76 +Subproject commit a558597a1a89a83c91aee898c3c036a77e1f8386 From b2b3fa59497237246cd40083c7247be610d3e384 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 27 May 2020 11:38:04 -0500 Subject: [PATCH 16/23] update jenkinsbuild.cmd to use externals nuget source (for windows) --- tools/jenkinsbuild.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/jenkinsbuild.cmd b/tools/jenkinsbuild.cmd index a6f345831..6dee433a9 100644 --- a/tools/jenkinsbuild.cmd +++ b/tools/jenkinsbuild.cmd @@ -7,7 +7,7 @@ if not exist build\src\lib\libspark.vcxproj ( ) call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -msbuild /m /p:debugtype=portable /p:platform=x64 /clp:verbosity=minimal /clp:summary /t:restore spark_client.sln /p:Configuration=release +msbuild /m /p:debugtype=portable /p:platform=x64 /clp:verbosity=minimal /clp:summary /t:restore /p:RestoreSources=externals\windows\nuget\packages spark_client.sln /p:Configuration=release IF %ERRORLEVEL% NEQ 0 GOTO :ERROR_AND_END msbuild /m /p:debugtype=portable /p:platform=x64 /clp:verbosity=minimal /clp:summary spark_client.sln /p:Configuration=release From 3d1de9a0c7c20bd1fab49ef5acb5dda2458c8ff1 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Wed, 27 May 2020 10:56:33 -0500 Subject: [PATCH 17/23] nuget_restore.cmd uses externals package source (builds offline) --- tools/nuget_restore.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/nuget_restore.cmd b/tools/nuget_restore.cmd index 99e1d5392..4c9f5c97d 100644 --- a/tools/nuget_restore.cmd +++ b/tools/nuget_restore.cmd @@ -2,6 +2,6 @@ setlocal call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat" > nul cd /d %~dp0/../ -msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary /t:restore spark_client.sln -msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary /p:Configuration=release /t:restore spark_client.sln +msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary /t:restore /p:RestoreSources=externals\windows\nuget\packages spark_client.sln +msbuild /m /p:platform=x64 /clp:verbosity=minimal /clp:summary /p:Configuration=release /t:restore /p:RestoreSources=externals\windows\nuget\packages spark_client.sln From fdacd8b5438f845e7bd7b658246b73dc81abadf3 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Wed, 27 May 2020 11:52:01 -0400 Subject: [PATCH 18/23] Added -f when removing simlinks in build setup. --- tools/setup_builds.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/setup_builds.sh b/tools/setup_builds.sh index 66d7a09c4..306dc17c9 100755 --- a/tools/setup_builds.sh +++ b/tools/setup_builds.sh @@ -4,8 +4,8 @@ SRC_ROOT=$DIR/../ mkdir -p $SRC_ROOT/build/ BUILD_ROOT=`readlink -f $SRC_ROOT/build` -rm $SRC_ROOT/src/web/ui/node_modules -rm $SRC_ROOT/src/web/api/node_modules +rm -f $SRC_ROOT/src/web/ui/node_modules +rm -f $SRC_ROOT/src/web/api/node_modules ln -s $SRC_ROOT/externals/npm/node_modules $SRC_ROOT/src/web/ui/node_modules ln -s $SRC_ROOT/externals/npm/node_modules $SRC_ROOT/src/web/api/node_modules rm -rf $BUILD_ROOT/clang_debug From a502c365e5f6cf451c3f1ce0b3c2d7cacd37f830 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Thu, 28 May 2020 12:11:53 -0400 Subject: [PATCH 19/23] Build tweaks --- src/web/api/build.sh | 11 +---------- tools/linux_control/build_in_docker.sh | 7 +++---- tools/setup_builds.sh | 1 + 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/web/api/build.sh b/src/web/api/build.sh index ce57168f7..669d17006 100755 --- a/src/web/api/build.sh +++ b/src/web/api/build.sh @@ -2,11 +2,6 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 export PATH="$PATH:/root/.dotnet/tools" -# install npx -if ! [ -x "$(command -v npx)" ]; then - npm install -g npx -fi - export OUT=${BUILD_DIR:-../../../build}/web MODE=manual case "$OUT" in @@ -39,9 +34,6 @@ PROTOC=../../../externals/linux/bin/protoc ORANGE='\033[0;33m' NOCOLOR='\033[0m' -npm install - - # Run pbjs to produce protobuf module echo -e \* ${ORANGE} pbjs ${NOCOLOR} npx --no-install pbjs -t json-module -w commonjs -o $OUT/api/proto.js $PROTO_LIST @@ -79,11 +71,10 @@ if [ "$FULL" == "1" ]; then export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 echo -e \* ${ORANGE} fable ${NOCOLOR} cd ../ui/ - npm install cd src mkdir -p $OUT/ui/ cp -r ../public/* $OUT/ui/ - dotnet restore + dotnet restore -s ../../../../externals/nuget/packages if [ "$MODE" == "release" ]; then dotnet fable webpack -- --env.BUILD_PATH=$OUT -p else diff --git a/tools/linux_control/build_in_docker.sh b/tools/linux_control/build_in_docker.sh index cdfd679ce..0478ae347 100755 --- a/tools/linux_control/build_in_docker.sh +++ b/tools/linux_control/build_in_docker.sh @@ -1,9 +1,8 @@ #!/bin/bash -BUILD=clang_debug -BUILD_LOC=/home/ppinto/temp/spark_build + if [ -f /.dockerenv ]; then - cd $BUILD_LOC/$BUILD && ninja + (cd `readlink -f .` && ninja) else cid=`docker ps | grep -P "emacs_ide|bluetradingsystems/linux_docker" | awk '{print $1}'` - docker exec $cid /bin/bash -c "cd $BUILD_LOC/$BUILD && ninja" + docker exec $cid /bin/bash -c "(cd `readlink -f .` && ninja)" fi diff --git a/tools/setup_builds.sh b/tools/setup_builds.sh index 306dc17c9..8934ade3d 100755 --- a/tools/setup_builds.sh +++ b/tools/setup_builds.sh @@ -8,6 +8,7 @@ rm -f $SRC_ROOT/src/web/ui/node_modules rm -f $SRC_ROOT/src/web/api/node_modules ln -s $SRC_ROOT/externals/npm/node_modules $SRC_ROOT/src/web/ui/node_modules ln -s $SRC_ROOT/externals/npm/node_modules $SRC_ROOT/src/web/api/node_modules + rm -rf $BUILD_ROOT/clang_debug mkdir $BUILD_ROOT/clang_debug cd $BUILD_ROOT/clang_debug From f3d28add1c64c7b1e31aa055bc4fcc655743f741 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Thu, 4 Jun 2020 13:41:34 -0400 Subject: [PATCH 20/23] Added publishing of new routing info when orders are recorevered from disk --- src/lib/orderman/orders/GLBXNativeOrder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/orderman/orders/GLBXNativeOrder.cpp b/src/lib/orderman/orders/GLBXNativeOrder.cpp index 3b99d66d5..cba3ad2ce 100644 --- a/src/lib/orderman/orders/GLBXNativeOrder.cpp +++ b/src/lib/orderman/orders/GLBXNativeOrder.cpp @@ -170,7 +170,7 @@ void NativeOrder::on_init_recovered(OrderRecord const &rec, me->sec = serv.sec_db.resolve(SecurityKey(def.security_key())); me->previous_working_position = Quantity(0); - auto const &native_state = get_native_state(me->state); + auto &native_state = get_native_state(me->state); switch (me->state.status()) { case ORDER_STATUS_WORKING: @@ -202,6 +202,8 @@ void NativeOrder::on_init_recovered(OrderRecord const &rec, } // if we made it this far we are good. me->routing_record = rq.routing_record; + *native_state.mutable_routing_record() = rq.routing_record; + if (me->state.status() != ORDER_STATUS_PENDING_WORKING) me->exchange_order_id = native_state.exchange_order_id(); init_fix(); From bc22605a25a3d310d549ad61feae3eeacdcd943d Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Thu, 4 Jun 2020 13:43:00 -0400 Subject: [PATCH 21/23] Added +x --- tools/udp.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tools/udp.py diff --git a/tools/udp.py b/tools/udp.py old mode 100644 new mode 100755 From 1a6b918853baf699883c65d035ca23969c850f74 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Thu, 4 Jun 2020 13:43:25 -0400 Subject: [PATCH 22/23] Updated docker --- docker/linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/linux b/docker/linux index 0df20ec20..95189976b 160000 --- a/docker/linux +++ b/docker/linux @@ -1 +1 @@ -Subproject commit 0df20ec20afaedf4077701548bc9bcb1f04647bf +Subproject commit 95189976be73d8681fe273599f3fd4920a4e1785 From 3b95154c046e156d79d03889e41d44c866d05693 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Fri, 5 Jun 2020 09:11:03 -0400 Subject: [PATCH 23/23] Updated ICE Onixs --- CMakeLists.txt | 2 +- docker/linux | 2 +- externals | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab7b9d481..9fdf8d001 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ else () COMMAND ln ARGS -sf ${CMAKE_BINARY_DIR}/web ${CMAKE_BINARY_DIR}/server COMMAND ln ARGS -sf ${CMAKE_BINARY_DIR}/data_files ${CMAKE_BINARY_DIR}/server COMMAND ln ARGS -sf ${CMAKE_BINARY_DIR}/src/lib/libspark.so ${CMAKE_BINARY_DIR}/server - COMMAND ln ARGS -sf ${EXTERNALS_ROOT}/lib/Release/libOnixS.IceImpactMulticastPriceFeedHandlerCpp.so.3.13.0.0 ${CMAKE_BINARY_DIR}/server + COMMAND ln ARGS -sf ${EXTERNALS_ROOT}/lib/Release/libOnixS.IceImpactMulticastPriceFeedHandlerCpp.so.3.16.0.0 ${CMAKE_BINARY_DIR}/server COMMAND ln ARGS -sf ${EXTERNALS_ROOT}/lib/Release/libACE-5.7.5.so ${CMAKE_BINARY_DIR}/server COMMAND mkdir ARGS -p ${CMAKE_BINARY_DIR}/server/plugins COMMENT "Creating server runtime layout" diff --git a/docker/linux b/docker/linux index 95189976b..296f277d4 160000 --- a/docker/linux +++ b/docker/linux @@ -1 +1 @@ -Subproject commit 95189976be73d8681fe273599f3fd4920a4e1785 +Subproject commit 296f277d4033873d1f5e5a958e195baa113265e4 diff --git a/externals b/externals index a558597a1..2ea5e355a 160000 --- a/externals +++ b/externals @@ -1 +1 @@ -Subproject commit a558597a1a89a83c91aee898c3c036a77e1f8386 +Subproject commit 2ea5e355a64d198b40e8cad001065b3924e27464