class SnapQuote(CStruct): exchange = CUChar() token = CUInt() buyers = CArray(5, CUInt) bid_prices = CArray(5, CUInt) bid_quantities = CArray(5, CUInt) sellers = CArray(5, CUInt) ask_prices = CArray(5, CUInt) ask_quantities = CArray(5, CUInt) exchange_time_stamp = CUInt()
class FullSnapQuote(CStruct): exchange = CUChar() token = CUInt() buyers = CArray(5, CUInt) bid_prices = CArray(5, CUInt) bid_quantities = CArray(5, CUInt) sellers = CArray(5, CUInt) ask_prices = CArray(5, CUInt) ask_quantities = CArray(5, CUInt) atp = CUInt() open = CUInt() high = CUInt() low = CUInt() close = CUInt() total_buy_quantity = CULong() total_sell_quantity = CULong() volume = CUInt()
class DataRow(CStruct): type = CUChar(always=ord('D')) length = CInt() num_fields = CUShort() column_values = CArray("num_fields", ColumnValue)
class RowDescription(CStruct): type = CUChar(always=ord('T')) length = CInt() num_fields = CUShort() fields = CArray("num_fields", Row)