mean_std_grid_hourly

Description

Enterprise users only.

Gets the mean and standard deviation of OpenPrice, ClosePrice, LowPrice and HighPrice in the hour bars over the given time range for the given security.

Simple Example

import datetime
dat = pq.mean_std_grid_hourly({'api_key': api_key, 
                              'time_in': datetime.datetime(2018, 3, 5, 19, 37, 12), 
                              'time_end': datetime.datetime(2018, 3, 23, 0, 0), 
                              'symbols': ['BTCUSDT']})
print(dat)

Simple Example Output

[{'ClosePrice_mean': 8988.091165048545, 'ClosePrice_std': 885.6846664916886, 'HighPrice_mean': 9071.097888349515, 'HighPrice_std': 886.6119356267282, 'LowPrice_mean': 8909.275485436905, 'LowPrice_std': 888.6660453837607, 'OpenPrice_mean': 8994.610825242718, 'OpenPrice_std': 895.2388123481894, 'Ticker': 'BTCUSDT'}]

Failure Examples

Failure Examples Output

Three Examples

Three Examples Output