NOTE : Same for all IITS
The tick size raw data gives a price band for which a minimum price increment needs to be adhered to for the instrument. The price of an instrument cannot go up or down in smaller increments than its stated tick size.
For example, if an instrument last traded at $0.30, the next price up is $0.32 - you cannot sell it for $0.31 as the tick size at that price band is $0.02.
Another example is that if you would like to buy this instrument at a slightly higher price than $1.00, you can only submit a bid at $2.00 as the tick size at that price band is $1.00.
You are given a set of tick size raw data from an exchange for a particular trading instrument.
Trim down the tick size rules to a more human-readable set of rules by switching to just a lower bound format.
This can be done by,
Use the tick size rules that you have generated to find the next possible incremental price of the trading instrument at specific prices.
Complete the function tick_sizes in the editor below.
tick_sizes has the following parameter(s):
(List[List[double]], List[double]): row-wise representation of the human-readable set of rules and next incremental prices of the trading instrument