Open matthewgilbert opened 5 years ago
The top level also appears inconsistent. Usually this is a blpapi.Datatype.CHOICE for other Response types however here it appears to be a sequence.
print("blpapi.DataType.SEQUENCE: %s" % blpapi.DataType.SEQUENCE)
print("Data Type: %s" % grid_msg.asElement().datatype())
blpapi.DataType.SEQUENCE: 15
Data Type: 15
For reference the message looks like
print(grid_msg.toString()[:400] + '\n...' + grid_msg.toString()[-400:])
GridResponse = {
NumOfFields = 0
NumOfRecords = 1413
ColumnTitles[] = {
"TICKER", "VESSEL NAME"
}
DataRecords[] = {
DataRecords = {
DataFields[] = {
DataFields = {
StringValue = "IMO9843247 Index"
}
DataFields = {
StringValue = "IHC HOLLAND CO01298"
... StringValue = "HUI JIAN"
}
}
}
DataRecords = {
DataFields[] = {
DataFields = {
StringValue = "IMO9872688 Index"
}
DataFields = {
StringValue = "NEW TIMES"
}
}
}
}
ReachMax = true
SequenceNumber = 34
}
Data returned from making a
ExcelGetGridRequest
seems inconsistent with schema. Anelement
is ablpapi.DataType.CHOICE
howeverelement.getChoice()
raises an error. This is illustrated below.