Feb-25-2019, 06:19 PM
rawdata = [{'mid': {'h': '1.31', 'o': '1.32', 'c': '1.33', 'l': '1.34'}, 'volume': 99, 'time': '2019-02-22T21', 'complete': False}] d = rawdata[0] print(d) h = d['mid']['h'] l = d['mid']['l'] print(f'h: {h}, l: {l}')output:
Output:{'mid': {'h': '1.31', 'o': '1.32', 'c': '1.33', 'l': '1.34'}, 'volume': 99, 'time': '2019-02-22T21', 'complete': False}
h: 1.31, l: 1.34