Ejemplo n.º 1
0
 public static Offset <ReactiveMarkets.PlatformApi.PublicTrade> CreatePublicTrade(FlatBufferBuilder builder,
                                                                                  long source_ts            = 0,
                                                                                  StringOffset sourceOffset = default(StringOffset),
                                                                                  StringOffset marketOffset = default(StringOffset),
                                                                                  int feed_id = 0,
                                                                                  StringOffset trade_idOffset = default(StringOffset),
                                                                                  ushort flags = 0,
                                                                                  ReactiveMarkets.PlatformApi.Side side = ReactiveMarkets.PlatformApi.Side.None,
                                                                                  double qty   = 0.0,
                                                                                  double price = 0.0,
                                                                                  StringOffset exec_venueOffset = default(StringOffset))
 {
     builder.StartTable(10);
     PublicTrade.AddPrice(builder, price);
     PublicTrade.AddQty(builder, qty);
     PublicTrade.AddSourceTs(builder, source_ts);
     PublicTrade.AddExecVenue(builder, exec_venueOffset);
     PublicTrade.AddTradeId(builder, trade_idOffset);
     PublicTrade.AddFeedId(builder, feed_id);
     PublicTrade.AddMarket(builder, marketOffset);
     PublicTrade.AddSource(builder, sourceOffset);
     PublicTrade.AddFlags(builder, flags);
     PublicTrade.AddSide(builder, side);
     return(PublicTrade.EndPublicTrade(builder));
 }
Ejemplo n.º 2
0
 public static PublicTrade GetRootAsPublicTrade(ByteBuffer _bb, PublicTrade obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }