Close Auction Volume prediction throughout the trading period is essential for various…
- User
Close Auction Volume prediction throughout the trading period is essential for various trading stratagies to make critical decisions.
Stock trades on exchange in two phases:
Continuous phase – stock trades in the phase from the start of day till Close Auction takes place. Trades continuously happen in this phase as buyers and sellers agrees on a price. Volume of shares traded in this phase is called Order Book volume.
Close Auction phase – stock trades in this phase at the end of the trading. In this phase large volume is traded at a single price through an auction, we call this volume as close auction volume.
image Objective
You have to devlop a model which can predict close auction volume based on historic data provided.
Note: You should use training data to come up with a model that predict the Close volume based on historic data.
Use the model that you have developed (based on trainig data), and with the input of test data predict the Close volume for respective symbol_ids. Training Dataset
You can download the training dataset from here
In the dataset you are given cumulative Order Book volume for various time buckets in a day and close auction volume for that day.
Training dataset is essentially timeseries data for various symbol_ids. Data Schema
symbol_id: Unique stock identifier.
date_id: Unique date identifier. date_id is sequential.
seconds_bucket: Numbers of seconds elapsed since the start of continuous phase.
cummulative_continous_volume: total volume traded in continuous phase since the start of the continuous phase till the seconds_bucket.
close_volume: volume traded in Close Auction of the stock on that date. This will tick at the end of the day at seconds_bucket = 31200 Evaluation Criteria
Each prediction ( ) will be assessed against the realised Close Auction Volume (
) for that day using
image
n -> number of symbol_ids
Score for each test case will be added to produce a final score.
Final score on leaderboard and documentation in the code will be used in evaluation.
Note: This problem statement has additional test cases that'll run post your submission. You final score is subject to change, your current score is not the final score Custom Models
You can upload your models to Github/Gitlab public repository and download the same from your code.
Here is a sample code you can use.
import requests import os
def download_file(url, filename): response = requests.get(url) if response.status_code == 200: with open(filename, 'wb') as file: file.write(response.content) Example usage
url = "https://github.com/sp2hari/hackerrank-network-sample/raw/refs/heads/main/userdata1.parquet" filename = os.path.basename(url) download_file(url, filename)
- Assistant