Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
class DataRow(CStruct):
    type = CUChar(always=ord('D'))
    length = CInt()
    num_fields = CUShort()
    column_values = CArray("num_fields", ColumnValue)
Ejemplo n.º 4
0
class RowDescription(CStruct):
    type = CUChar(always=ord('T'))
    length = CInt()
    num_fields = CUShort()
    fields = CArray("num_fields", Row)