hft

Using exactly the same code, a high frequency hazelcast ringbuffer client not updating but low frequency client is

↘锁芯ラ 提交于 2019-12-25 14:12:49
问题 I have the following code which is used to listen to various ringbuffers. Some are high frequency price data and some are low frequency trade data: public static void main(String[] args) { HazelcastInstance client = Hazelcast.newHazelcastInstance(); Ringbuffer<String> databuffer = client.getRingbuffer("data"); long sequence = databuffer.headSequence(); while(true) { String d = null; try { d = databuffer.readOne(sequence); System.out.println(d); } catch (InterruptedException e) { StringWriter

how to prevent series of integers to have the same value to often [closed]

南笙酒味 提交于 2019-12-13 04:28:28
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have "online" series of integers number, so every several milliseconds I have new number. Frequency is not specified - sometimes I have many numbers, sometimes I have no numbers. In reality this numbers are so

in HFT does it make sense to try to parallel orders processing?

假如想象 提交于 2019-12-09 06:25:21
问题 Well I assume this is more theoretical question for those who familar with hft. I receive orders from FAST and process them. I receive about 2-3 thousands orders per second. The question is if I should try to process them synchronous or asynchronous. Every time I receive next order I need to do following: update orderbook of corresponding instrument update indexes and indicators that depends on that order update strategies and schedule some actions if required (buy/sell something etc.) To do

in HFT does it make sense to try to parallel orders processing?

五迷三道 提交于 2019-12-03 08:03:33
Well I assume this is more theoretical question for those who familar with hft. I receive orders from FAST and process them. I receive about 2-3 thousands orders per second. The question is if I should try to process them synchronous or asynchronous. Every time I receive next order I need to do following: update orderbook of corresponding instrument update indexes and indicators that depends on that order update strategies and schedule some actions if required (buy/sell something etc.) To do that synchronous I have about 200-300 µs (to be able to process 3000 orders per second). That should be

zipline backtesting using non-US (European) intraday data

被刻印的时光 ゝ 提交于 2019-12-03 05:22:01
问题 I'm trying to get zipline working with non-US, intraday data, that I've loaded into a pandas DataFrame: BARC HSBA LLOY STAN Date 2014-07-01 08:30:00 321.250 894.55 112.105 1777.25 2014-07-01 08:32:00 321.150 894.70 112.095 1777.00 2014-07-01 08:34:00 321.075 894.80 112.140 1776.50 2014-07-01 08:36:00 321.725 894.80 112.255 1777.00 2014-07-01 08:38:00 321.675 894.70 112.290 1777.00 I've followed moving-averages tutorial here, replacing "AAPL" with my own symbol code, and the historical calls

zipline backtesting using non-US (European) intraday data

ε祈祈猫儿з 提交于 2019-12-02 18:37:52
I'm trying to get zipline working with non-US, intraday data, that I've loaded into a pandas DataFrame: BARC HSBA LLOY STAN Date 2014-07-01 08:30:00 321.250 894.55 112.105 1777.25 2014-07-01 08:32:00 321.150 894.70 112.095 1777.00 2014-07-01 08:34:00 321.075 894.80 112.140 1776.50 2014-07-01 08:36:00 321.725 894.80 112.255 1777.00 2014-07-01 08:38:00 321.675 894.70 112.290 1777.00 I've followed moving-averages tutorial here , replacing "AAPL" with my own symbol code, and the historical calls with "1m" data instead of "1d". Then I do the final call using algo_obj.run(DataFrameSource(mydf)) ,

Why does the JVM require warmup?

守給你的承諾、 提交于 2019-11-28 03:56:14
I understand that in the Java virtual machine (JVM), warmup is potentially required as Java loads classes using a lazy loading process and as such you want to ensure that the objects are initialized before you start the main transactions. I am a C++ developer and have not had to deal with similar requirements. However, the parts I am not able to understand are the following: Which parts of the code should you warm up? Even if I warm up some parts of the code, how long does it remain warm (assuming this term only means how long your class objects remain in-memory)? How does it help if I have

Why does the JVM require warmup?

瘦欲@ 提交于 2019-11-26 19:14:43
问题 I understand that in the Java virtual machine (JVM), warmup is potentially required as Java loads classes using a lazy loading process and as such you want to ensure that the objects are initialized before you start the main transactions. I am a C++ developer and have not had to deal with similar requirements. However, the parts I am not able to understand are the following: Which parts of the code should you warm up? Even if I warm up some parts of the code, how long does it remain warm