def _bookToDF(b):
quote = b.get('<STR_LIT>', [])<EOL>asks = b.get('<STR_LIT>', [])<EOL>bids = b.get('<STR_LIT>', [])<EOL>trades = b.get('<STR_LIT>', [])<EOL>df1 = pd.io.json.json_normalize(quote)<EOL>df1['<STR_LIT:type>'] = '<STR_LIT>'<EOL>df2 = pd.io.json.json_normalize(asks)<EOL>df2['<STR_LIT>'] = quote['<STR_LIT>']<EOL>df2['<STR_LIT:type>'] = '<STR_LIT>'<EOL>df3 = pd.io.json.json_normalize(bids)<EOL>df3['<STR_LIT>'] = quote['<STR_LIT>']<EOL>df3['<STR_LIT:type>'] = '<STR_LIT>'<EOL>df4 = pd.io.json.json_normalize(trades)<EOL>df4['<STR_LIT>'] = quote['<STR_LIT>']<EOL>df3['<STR_LIT:type>'] = '<STR_LIT>'<EOL>df = pd.concat([df1, df2, df3, df4], sort=True)<EOL>_toDatetime(df)<EOL>return df<EOL>
internal