Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the first task, you need to compute candlestick data from the exchange data for a particular product. Here is an example of the fields

In the first task, you need to compute candlestick data from the exchange data for a particular product. Here is an example of the fields needed for candlestick data:DateOpen High Low Close2023-05-01100120801102023-05-021101301001202023-05-039010070802023-05-0495110701002023-05-058012075115Note that you will need to do this separately for asks and bids, and separately for different products.So the table above might be the candlestick data for 'asks on ETH/UDST', for example.Here is how you can compute each field:Open = the average price per unit in the previous time frame. So say we want to compute the valuefor ETH/USDT asks from the list of items from the order book, which are all asks for ETH/USDT:AmountPriceValue (price X amount)1051010TOTAL1520MEAN price (total value / total price:6.67You can see that the mean price is 6.67.Close: the average price per unit in this time frame (same as Open, but for the current time frame)High: highest price seen this time frameLow: lowest price seen this time frameYou should implement the candlestick data computation using a function which returns the following datatype std::vecto

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

I am paid fairly for the work I do.

Answered: 1 week ago

Question

I receive the training I need to do my job well.

Answered: 1 week ago