예제 #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()
예제 #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()
예제 #3
0
파일: message.py 프로젝트: willemt/sqlhild
class DataRow(CStruct):
    type = CUChar(always=ord('D'))
    length = CInt()
    num_fields = CUShort()
    column_values = CArray("num_fields", ColumnValue)
예제 #4
0
파일: message.py 프로젝트: willemt/sqlhild
class RowDescription(CStruct):
    type = CUChar(always=ord('T'))
    length = CInt()
    num_fields = CUShort()
    fields = CArray("num_fields", Row)