(p: DepthMarketDataDescriptionProto)
| 139 | } |
| 140 | |
| 141 | function decodeDepthMktDataDescFromProto(p: DepthMarketDataDescriptionProto): DepthMktDataDescription { |
| 142 | const desc = new DepthMktDataDescription() |
| 143 | desc.exchange = p.exchange ?? '' |
| 144 | desc.secType = p.secType ?? '' |
| 145 | desc.listingExch = p.listingExch ?? '' |
| 146 | desc.serviceDataType = p.serviceDataType ?? '' |
| 147 | desc.aggGroup = p.aggGroup ?? 0 |
| 148 | return desc |
| 149 | } |
| 150 | |
| 151 | // --------------------------------------------------------------------------- |
| 152 | // Registration |