Mid+One
Attacking together, make us stronger.
Last updated
Attacking together, make us stronger.
Last updated
Welcome to Mid+One! Dive into the world of martingales and market dynamics. Spot tiny shifts in high-frequency time-series, to predict where prices are heading. It's all about finding that elusive mid-price, one minute into the future.
Ready to attack?
With Mid+One Crunch has found another opportunity: Thousands of banks are consuming mid-market prices for their execution algorithms. The community meta-model will unlock a stream of ongoing rewards with a potential to serve a multi-billion dollar market.
Detect small exceptions to the martingale property of a time-series.
Determine when a time-series will rise or fall.
A "buy and hold" strategy is applied for each prediction over the next 30 time steps.
The goal is to maximize profit after accounting for the transaction costs.
Quicktarter notebook.
You will build algorithms that takes one data point at a time and decides whether the average future value 30 steps in advance will be higher or lower than the present value. You only have the time-series, nothing else. Your prediction must be determined only by the past history of the time-series and by patterns you detect therein.
Unlike most forecasting tasks, however, you goal is not to provide a precise prediction 30 steps in the future. Instead you should decide between three possibilities:
The time-series will go up, on average, by at least EPSILON
;
The time-series will go down, on average, by at least EPSILON
;
Or the average value of the time series will fall between -EPSILON
and EPSILON
.
EPSILON
is the Transaction cost value and is set at 0.0025
For every non-zero prediction, the system initiates a "buy and hold" for 30 data points.
If the prediction is positive we go buy and hold.
If the prediction is negative we go short and hold.
However, a fixed transaction cost (EPSILON
) is applied to the profit in both case.
If the value rises by 0.50
over the next 30 periods; the profit will be 0.50
and the net profit would be 0.4975
.
Similarly, should the price fall by 0.20
then the net profit would be -0.2025
.
Your tick and predict must run in less then 20ms!
In Mid+One, delivering value to the customer quickly is crucial. Crunch aims to tackle increasingly lower frequencies.
Submissions that are too slow but still achieve great results will be rewarded for the Rally.
However, they cannot be deployed in Production or used by Financial Institutions. If you're out of range, there are plenty of ways to optimize your code to meet the 20ms threshold.
Keep in mind that gains in Production will be much higher than during the Rally. OPTIMIZE!
Mid+One is likely to evolve into a live Crunch. We will go through a first 2 months test phase called "Rally" in order to ensure both problem statement, data and models integrity.
Monday Oct 18, 2024, 09:00 AM CET - Submission open
Monday Dec 18 , 2024, 09:00 AM CET - Out-of-Sample start (live data)
Live Crunch refers to "in Production" mode where Crunch and the submitted models actively serve real-world end customers.
During the Submission Phase the Crunchers are required to submit valid Notebooks or Python files. This submission need to "run" successfully on the Crunch hub in order to receive to be triggered in Out-of-Sample Phase and receive live data.
Once the Out-of-Sample Phase start, new data will be run through the models submitted.
In Mid+One, participants are facing univariate time-series called Streams. Crunch's Streams are iterator objects that allow you to traverse all elements of a time-series, one at a time.
This package is intended to make life simpler for those participating in Mid+One.
Attacker
is a Python class that consume a univariate sequence of numerical data points (such as stock prices, bond prices, or any time series) x1
, x2
, …xt
and attempts to predict its future movement.
Tick
is a method from the Attacker
class that allows the consumption of incoming data points.
Predict
is a method from the Attacker
class that take a decision base on previous datapoints.
Tick&Predict
is a method from the Attacker
class that do Tick
and Predict
in a single function call.
Accounting
handle tracking and logging the profit and loss (PnL) for decisions made by an Attacker
.
Read more in attacker.md.
Some common questions have already been answered in the FAQ.md.
In the initial phase the top ten performers judged by profit and loss will share in $10,000 in proportion to their profit in the out of sample period. An example is available here.
As a result, in the infer function, your code must not take more than 20ms from receiving the message to returning the result. If your average inference time exceeds this limit, your position on the leaderboard will be marked with an badge.
Notebook | Description |
---|---|
A minimalist contest entry notebook
Illustrates use of the Attacker class
Illustrates use of running calculations
Illustrates running regression pattern