github.com/InjectiveLabs/sdk-go@v1.53.0/exchange/spot_exchange_rpc/pb/injective_spot_exchange_rpc.pb.gw.go (about)

     1  // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
     2  // source: injective_spot_exchange_rpc.proto
     3  
     4  /*
     5  Package injective_spot_exchange_rpcpb is a reverse proxy.
     6  
     7  It translates gRPC into RESTful JSON APIs.
     8  */
     9  package injective_spot_exchange_rpcpb
    10  
    11  import (
    12  	"context"
    13  	"io"
    14  	"net/http"
    15  
    16  	"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
    17  	"github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
    18  	"google.golang.org/grpc"
    19  	"google.golang.org/grpc/codes"
    20  	"google.golang.org/grpc/grpclog"
    21  	"google.golang.org/grpc/metadata"
    22  	"google.golang.org/grpc/status"
    23  	"google.golang.org/protobuf/proto"
    24  )
    25  
    26  // Suppress "imported and not used" errors
    27  var _ codes.Code
    28  var _ io.Reader
    29  var _ status.Status
    30  var _ = runtime.String
    31  var _ = utilities.NewDoubleArray
    32  var _ = metadata.Join
    33  
    34  func request_InjectiveSpotExchangeRPC_Markets_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    35  	var protoReq MarketsRequest
    36  	var metadata runtime.ServerMetadata
    37  
    38  	newReader, berr := utilities.IOReaderFactory(req.Body)
    39  	if berr != nil {
    40  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    41  	}
    42  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    43  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    44  	}
    45  
    46  	msg, err := client.Markets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    47  	return msg, metadata, err
    48  
    49  }
    50  
    51  func local_request_InjectiveSpotExchangeRPC_Markets_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    52  	var protoReq MarketsRequest
    53  	var metadata runtime.ServerMetadata
    54  
    55  	newReader, berr := utilities.IOReaderFactory(req.Body)
    56  	if berr != nil {
    57  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    58  	}
    59  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    60  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    61  	}
    62  
    63  	msg, err := server.Markets(ctx, &protoReq)
    64  	return msg, metadata, err
    65  
    66  }
    67  
    68  func request_InjectiveSpotExchangeRPC_Market_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    69  	var protoReq MarketRequest
    70  	var metadata runtime.ServerMetadata
    71  
    72  	newReader, berr := utilities.IOReaderFactory(req.Body)
    73  	if berr != nil {
    74  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    75  	}
    76  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    77  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    78  	}
    79  
    80  	msg, err := client.Market(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    81  	return msg, metadata, err
    82  
    83  }
    84  
    85  func local_request_InjectiveSpotExchangeRPC_Market_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    86  	var protoReq MarketRequest
    87  	var metadata runtime.ServerMetadata
    88  
    89  	newReader, berr := utilities.IOReaderFactory(req.Body)
    90  	if berr != nil {
    91  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    92  	}
    93  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    94  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    95  	}
    96  
    97  	msg, err := server.Market(ctx, &protoReq)
    98  	return msg, metadata, err
    99  
   100  }
   101  
   102  func request_InjectiveSpotExchangeRPC_StreamMarkets_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (InjectiveSpotExchangeRPC_StreamMarketsClient, runtime.ServerMetadata, error) {
   103  	var protoReq StreamMarketsRequest
   104  	var metadata runtime.ServerMetadata
   105  
   106  	newReader, berr := utilities.IOReaderFactory(req.Body)
   107  	if berr != nil {
   108  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   109  	}
   110  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   111  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   112  	}
   113  
   114  	stream, err := client.StreamMarkets(ctx, &protoReq)
   115  	if err != nil {
   116  		return nil, metadata, err
   117  	}
   118  	header, err := stream.Header()
   119  	if err != nil {
   120  		return nil, metadata, err
   121  	}
   122  	metadata.HeaderMD = header
   123  	return stream, metadata, nil
   124  
   125  }
   126  
   127  func request_InjectiveSpotExchangeRPC_OrderbookV2_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   128  	var protoReq OrderbookV2Request
   129  	var metadata runtime.ServerMetadata
   130  
   131  	newReader, berr := utilities.IOReaderFactory(req.Body)
   132  	if berr != nil {
   133  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   134  	}
   135  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   136  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   137  	}
   138  
   139  	msg, err := client.OrderbookV2(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   140  	return msg, metadata, err
   141  
   142  }
   143  
   144  func local_request_InjectiveSpotExchangeRPC_OrderbookV2_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   145  	var protoReq OrderbookV2Request
   146  	var metadata runtime.ServerMetadata
   147  
   148  	newReader, berr := utilities.IOReaderFactory(req.Body)
   149  	if berr != nil {
   150  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   151  	}
   152  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   153  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   154  	}
   155  
   156  	msg, err := server.OrderbookV2(ctx, &protoReq)
   157  	return msg, metadata, err
   158  
   159  }
   160  
   161  func request_InjectiveSpotExchangeRPC_OrderbooksV2_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   162  	var protoReq OrderbooksV2Request
   163  	var metadata runtime.ServerMetadata
   164  
   165  	newReader, berr := utilities.IOReaderFactory(req.Body)
   166  	if berr != nil {
   167  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   168  	}
   169  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   170  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   171  	}
   172  
   173  	msg, err := client.OrderbooksV2(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   174  	return msg, metadata, err
   175  
   176  }
   177  
   178  func local_request_InjectiveSpotExchangeRPC_OrderbooksV2_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   179  	var protoReq OrderbooksV2Request
   180  	var metadata runtime.ServerMetadata
   181  
   182  	newReader, berr := utilities.IOReaderFactory(req.Body)
   183  	if berr != nil {
   184  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   185  	}
   186  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   187  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   188  	}
   189  
   190  	msg, err := server.OrderbooksV2(ctx, &protoReq)
   191  	return msg, metadata, err
   192  
   193  }
   194  
   195  func request_InjectiveSpotExchangeRPC_StreamOrderbookV2_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (InjectiveSpotExchangeRPC_StreamOrderbookV2Client, runtime.ServerMetadata, error) {
   196  	var protoReq StreamOrderbookV2Request
   197  	var metadata runtime.ServerMetadata
   198  
   199  	newReader, berr := utilities.IOReaderFactory(req.Body)
   200  	if berr != nil {
   201  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   202  	}
   203  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   204  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   205  	}
   206  
   207  	stream, err := client.StreamOrderbookV2(ctx, &protoReq)
   208  	if err != nil {
   209  		return nil, metadata, err
   210  	}
   211  	header, err := stream.Header()
   212  	if err != nil {
   213  		return nil, metadata, err
   214  	}
   215  	metadata.HeaderMD = header
   216  	return stream, metadata, nil
   217  
   218  }
   219  
   220  func request_InjectiveSpotExchangeRPC_StreamOrderbookUpdate_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (InjectiveSpotExchangeRPC_StreamOrderbookUpdateClient, runtime.ServerMetadata, error) {
   221  	var protoReq StreamOrderbookUpdateRequest
   222  	var metadata runtime.ServerMetadata
   223  
   224  	newReader, berr := utilities.IOReaderFactory(req.Body)
   225  	if berr != nil {
   226  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   227  	}
   228  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   229  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   230  	}
   231  
   232  	stream, err := client.StreamOrderbookUpdate(ctx, &protoReq)
   233  	if err != nil {
   234  		return nil, metadata, err
   235  	}
   236  	header, err := stream.Header()
   237  	if err != nil {
   238  		return nil, metadata, err
   239  	}
   240  	metadata.HeaderMD = header
   241  	return stream, metadata, nil
   242  
   243  }
   244  
   245  func request_InjectiveSpotExchangeRPC_Orders_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   246  	var protoReq OrdersRequest
   247  	var metadata runtime.ServerMetadata
   248  
   249  	newReader, berr := utilities.IOReaderFactory(req.Body)
   250  	if berr != nil {
   251  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   252  	}
   253  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   254  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   255  	}
   256  
   257  	msg, err := client.Orders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   258  	return msg, metadata, err
   259  
   260  }
   261  
   262  func local_request_InjectiveSpotExchangeRPC_Orders_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   263  	var protoReq OrdersRequest
   264  	var metadata runtime.ServerMetadata
   265  
   266  	newReader, berr := utilities.IOReaderFactory(req.Body)
   267  	if berr != nil {
   268  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   269  	}
   270  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   271  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   272  	}
   273  
   274  	msg, err := server.Orders(ctx, &protoReq)
   275  	return msg, metadata, err
   276  
   277  }
   278  
   279  func request_InjectiveSpotExchangeRPC_StreamOrders_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (InjectiveSpotExchangeRPC_StreamOrdersClient, runtime.ServerMetadata, error) {
   280  	var protoReq StreamOrdersRequest
   281  	var metadata runtime.ServerMetadata
   282  
   283  	newReader, berr := utilities.IOReaderFactory(req.Body)
   284  	if berr != nil {
   285  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   286  	}
   287  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   288  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   289  	}
   290  
   291  	stream, err := client.StreamOrders(ctx, &protoReq)
   292  	if err != nil {
   293  		return nil, metadata, err
   294  	}
   295  	header, err := stream.Header()
   296  	if err != nil {
   297  		return nil, metadata, err
   298  	}
   299  	metadata.HeaderMD = header
   300  	return stream, metadata, nil
   301  
   302  }
   303  
   304  func request_InjectiveSpotExchangeRPC_Trades_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   305  	var protoReq TradesRequest
   306  	var metadata runtime.ServerMetadata
   307  
   308  	newReader, berr := utilities.IOReaderFactory(req.Body)
   309  	if berr != nil {
   310  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   311  	}
   312  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   313  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   314  	}
   315  
   316  	msg, err := client.Trades(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   317  	return msg, metadata, err
   318  
   319  }
   320  
   321  func local_request_InjectiveSpotExchangeRPC_Trades_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   322  	var protoReq TradesRequest
   323  	var metadata runtime.ServerMetadata
   324  
   325  	newReader, berr := utilities.IOReaderFactory(req.Body)
   326  	if berr != nil {
   327  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   328  	}
   329  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   330  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   331  	}
   332  
   333  	msg, err := server.Trades(ctx, &protoReq)
   334  	return msg, metadata, err
   335  
   336  }
   337  
   338  func request_InjectiveSpotExchangeRPC_StreamTrades_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (InjectiveSpotExchangeRPC_StreamTradesClient, runtime.ServerMetadata, error) {
   339  	var protoReq StreamTradesRequest
   340  	var metadata runtime.ServerMetadata
   341  
   342  	newReader, berr := utilities.IOReaderFactory(req.Body)
   343  	if berr != nil {
   344  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   345  	}
   346  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   347  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   348  	}
   349  
   350  	stream, err := client.StreamTrades(ctx, &protoReq)
   351  	if err != nil {
   352  		return nil, metadata, err
   353  	}
   354  	header, err := stream.Header()
   355  	if err != nil {
   356  		return nil, metadata, err
   357  	}
   358  	metadata.HeaderMD = header
   359  	return stream, metadata, nil
   360  
   361  }
   362  
   363  func request_InjectiveSpotExchangeRPC_TradesV2_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   364  	var protoReq TradesV2Request
   365  	var metadata runtime.ServerMetadata
   366  
   367  	newReader, berr := utilities.IOReaderFactory(req.Body)
   368  	if berr != nil {
   369  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   370  	}
   371  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   372  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   373  	}
   374  
   375  	msg, err := client.TradesV2(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   376  	return msg, metadata, err
   377  
   378  }
   379  
   380  func local_request_InjectiveSpotExchangeRPC_TradesV2_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   381  	var protoReq TradesV2Request
   382  	var metadata runtime.ServerMetadata
   383  
   384  	newReader, berr := utilities.IOReaderFactory(req.Body)
   385  	if berr != nil {
   386  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   387  	}
   388  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   389  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   390  	}
   391  
   392  	msg, err := server.TradesV2(ctx, &protoReq)
   393  	return msg, metadata, err
   394  
   395  }
   396  
   397  func request_InjectiveSpotExchangeRPC_StreamTradesV2_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (InjectiveSpotExchangeRPC_StreamTradesV2Client, runtime.ServerMetadata, error) {
   398  	var protoReq StreamTradesV2Request
   399  	var metadata runtime.ServerMetadata
   400  
   401  	newReader, berr := utilities.IOReaderFactory(req.Body)
   402  	if berr != nil {
   403  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   404  	}
   405  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   406  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   407  	}
   408  
   409  	stream, err := client.StreamTradesV2(ctx, &protoReq)
   410  	if err != nil {
   411  		return nil, metadata, err
   412  	}
   413  	header, err := stream.Header()
   414  	if err != nil {
   415  		return nil, metadata, err
   416  	}
   417  	metadata.HeaderMD = header
   418  	return stream, metadata, nil
   419  
   420  }
   421  
   422  func request_InjectiveSpotExchangeRPC_SubaccountOrdersList_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   423  	var protoReq SubaccountOrdersListRequest
   424  	var metadata runtime.ServerMetadata
   425  
   426  	newReader, berr := utilities.IOReaderFactory(req.Body)
   427  	if berr != nil {
   428  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   429  	}
   430  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   431  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   432  	}
   433  
   434  	msg, err := client.SubaccountOrdersList(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   435  	return msg, metadata, err
   436  
   437  }
   438  
   439  func local_request_InjectiveSpotExchangeRPC_SubaccountOrdersList_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   440  	var protoReq SubaccountOrdersListRequest
   441  	var metadata runtime.ServerMetadata
   442  
   443  	newReader, berr := utilities.IOReaderFactory(req.Body)
   444  	if berr != nil {
   445  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   446  	}
   447  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   448  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   449  	}
   450  
   451  	msg, err := server.SubaccountOrdersList(ctx, &protoReq)
   452  	return msg, metadata, err
   453  
   454  }
   455  
   456  func request_InjectiveSpotExchangeRPC_SubaccountTradesList_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   457  	var protoReq SubaccountTradesListRequest
   458  	var metadata runtime.ServerMetadata
   459  
   460  	newReader, berr := utilities.IOReaderFactory(req.Body)
   461  	if berr != nil {
   462  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   463  	}
   464  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   465  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   466  	}
   467  
   468  	msg, err := client.SubaccountTradesList(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   469  	return msg, metadata, err
   470  
   471  }
   472  
   473  func local_request_InjectiveSpotExchangeRPC_SubaccountTradesList_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   474  	var protoReq SubaccountTradesListRequest
   475  	var metadata runtime.ServerMetadata
   476  
   477  	newReader, berr := utilities.IOReaderFactory(req.Body)
   478  	if berr != nil {
   479  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   480  	}
   481  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   482  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   483  	}
   484  
   485  	msg, err := server.SubaccountTradesList(ctx, &protoReq)
   486  	return msg, metadata, err
   487  
   488  }
   489  
   490  func request_InjectiveSpotExchangeRPC_OrdersHistory_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   491  	var protoReq OrdersHistoryRequest
   492  	var metadata runtime.ServerMetadata
   493  
   494  	newReader, berr := utilities.IOReaderFactory(req.Body)
   495  	if berr != nil {
   496  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   497  	}
   498  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   499  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   500  	}
   501  
   502  	msg, err := client.OrdersHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   503  	return msg, metadata, err
   504  
   505  }
   506  
   507  func local_request_InjectiveSpotExchangeRPC_OrdersHistory_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   508  	var protoReq OrdersHistoryRequest
   509  	var metadata runtime.ServerMetadata
   510  
   511  	newReader, berr := utilities.IOReaderFactory(req.Body)
   512  	if berr != nil {
   513  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   514  	}
   515  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   516  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   517  	}
   518  
   519  	msg, err := server.OrdersHistory(ctx, &protoReq)
   520  	return msg, metadata, err
   521  
   522  }
   523  
   524  func request_InjectiveSpotExchangeRPC_StreamOrdersHistory_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (InjectiveSpotExchangeRPC_StreamOrdersHistoryClient, runtime.ServerMetadata, error) {
   525  	var protoReq StreamOrdersHistoryRequest
   526  	var metadata runtime.ServerMetadata
   527  
   528  	newReader, berr := utilities.IOReaderFactory(req.Body)
   529  	if berr != nil {
   530  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   531  	}
   532  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   533  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   534  	}
   535  
   536  	stream, err := client.StreamOrdersHistory(ctx, &protoReq)
   537  	if err != nil {
   538  		return nil, metadata, err
   539  	}
   540  	header, err := stream.Header()
   541  	if err != nil {
   542  		return nil, metadata, err
   543  	}
   544  	metadata.HeaderMD = header
   545  	return stream, metadata, nil
   546  
   547  }
   548  
   549  func request_InjectiveSpotExchangeRPC_AtomicSwapHistory_0(ctx context.Context, marshaler runtime.Marshaler, client InjectiveSpotExchangeRPCClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   550  	var protoReq AtomicSwapHistoryRequest
   551  	var metadata runtime.ServerMetadata
   552  
   553  	newReader, berr := utilities.IOReaderFactory(req.Body)
   554  	if berr != nil {
   555  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   556  	}
   557  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   558  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   559  	}
   560  
   561  	msg, err := client.AtomicSwapHistory(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   562  	return msg, metadata, err
   563  
   564  }
   565  
   566  func local_request_InjectiveSpotExchangeRPC_AtomicSwapHistory_0(ctx context.Context, marshaler runtime.Marshaler, server InjectiveSpotExchangeRPCServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   567  	var protoReq AtomicSwapHistoryRequest
   568  	var metadata runtime.ServerMetadata
   569  
   570  	newReader, berr := utilities.IOReaderFactory(req.Body)
   571  	if berr != nil {
   572  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   573  	}
   574  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   575  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   576  	}
   577  
   578  	msg, err := server.AtomicSwapHistory(ctx, &protoReq)
   579  	return msg, metadata, err
   580  
   581  }
   582  
   583  // RegisterInjectiveSpotExchangeRPCHandlerServer registers the http handlers for service InjectiveSpotExchangeRPC to "mux".
   584  // UnaryRPC     :call InjectiveSpotExchangeRPCServer directly.
   585  // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
   586  // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInjectiveSpotExchangeRPCHandlerFromEndpoint instead.
   587  func RegisterInjectiveSpotExchangeRPCHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InjectiveSpotExchangeRPCServer) error {
   588  
   589  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Markets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   590  		ctx, cancel := context.WithCancel(req.Context())
   591  		defer cancel()
   592  		var stream runtime.ServerTransportStream
   593  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   594  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   595  		var err error
   596  		var annotatedContext context.Context
   597  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Markets", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Markets"))
   598  		if err != nil {
   599  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   600  			return
   601  		}
   602  		resp, md, err := local_request_InjectiveSpotExchangeRPC_Markets_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   603  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   604  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   605  		if err != nil {
   606  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   607  			return
   608  		}
   609  
   610  		forward_InjectiveSpotExchangeRPC_Markets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   611  
   612  	})
   613  
   614  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Market_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   615  		ctx, cancel := context.WithCancel(req.Context())
   616  		defer cancel()
   617  		var stream runtime.ServerTransportStream
   618  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   619  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   620  		var err error
   621  		var annotatedContext context.Context
   622  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Market", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Market"))
   623  		if err != nil {
   624  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   625  			return
   626  		}
   627  		resp, md, err := local_request_InjectiveSpotExchangeRPC_Market_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   628  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   629  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   630  		if err != nil {
   631  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   632  			return
   633  		}
   634  
   635  		forward_InjectiveSpotExchangeRPC_Market_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   636  
   637  	})
   638  
   639  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamMarkets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   640  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   641  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   642  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   643  		return
   644  	})
   645  
   646  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_OrderbookV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   647  		ctx, cancel := context.WithCancel(req.Context())
   648  		defer cancel()
   649  		var stream runtime.ServerTransportStream
   650  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   651  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   652  		var err error
   653  		var annotatedContext context.Context
   654  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbookV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbookV2"))
   655  		if err != nil {
   656  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   657  			return
   658  		}
   659  		resp, md, err := local_request_InjectiveSpotExchangeRPC_OrderbookV2_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   660  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   661  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   662  		if err != nil {
   663  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   664  			return
   665  		}
   666  
   667  		forward_InjectiveSpotExchangeRPC_OrderbookV2_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   668  
   669  	})
   670  
   671  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_OrderbooksV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   672  		ctx, cancel := context.WithCancel(req.Context())
   673  		defer cancel()
   674  		var stream runtime.ServerTransportStream
   675  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   676  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   677  		var err error
   678  		var annotatedContext context.Context
   679  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbooksV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbooksV2"))
   680  		if err != nil {
   681  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   682  			return
   683  		}
   684  		resp, md, err := local_request_InjectiveSpotExchangeRPC_OrderbooksV2_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   685  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   686  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   687  		if err != nil {
   688  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   689  			return
   690  		}
   691  
   692  		forward_InjectiveSpotExchangeRPC_OrderbooksV2_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   693  
   694  	})
   695  
   696  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrderbookV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   697  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   698  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   699  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   700  		return
   701  	})
   702  
   703  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrderbookUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   704  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   705  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   706  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   707  		return
   708  	})
   709  
   710  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Orders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   711  		ctx, cancel := context.WithCancel(req.Context())
   712  		defer cancel()
   713  		var stream runtime.ServerTransportStream
   714  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   715  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   716  		var err error
   717  		var annotatedContext context.Context
   718  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Orders", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Orders"))
   719  		if err != nil {
   720  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   721  			return
   722  		}
   723  		resp, md, err := local_request_InjectiveSpotExchangeRPC_Orders_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   724  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   725  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   726  		if err != nil {
   727  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   728  			return
   729  		}
   730  
   731  		forward_InjectiveSpotExchangeRPC_Orders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   732  
   733  	})
   734  
   735  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   736  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   737  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   738  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   739  		return
   740  	})
   741  
   742  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Trades_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   743  		ctx, cancel := context.WithCancel(req.Context())
   744  		defer cancel()
   745  		var stream runtime.ServerTransportStream
   746  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   747  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   748  		var err error
   749  		var annotatedContext context.Context
   750  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Trades", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Trades"))
   751  		if err != nil {
   752  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   753  			return
   754  		}
   755  		resp, md, err := local_request_InjectiveSpotExchangeRPC_Trades_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   756  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   757  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   758  		if err != nil {
   759  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   760  			return
   761  		}
   762  
   763  		forward_InjectiveSpotExchangeRPC_Trades_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   764  
   765  	})
   766  
   767  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamTrades_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   768  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   769  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   770  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   771  		return
   772  	})
   773  
   774  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_TradesV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   775  		ctx, cancel := context.WithCancel(req.Context())
   776  		defer cancel()
   777  		var stream runtime.ServerTransportStream
   778  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   779  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   780  		var err error
   781  		var annotatedContext context.Context
   782  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/TradesV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/TradesV2"))
   783  		if err != nil {
   784  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   785  			return
   786  		}
   787  		resp, md, err := local_request_InjectiveSpotExchangeRPC_TradesV2_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   788  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   789  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   790  		if err != nil {
   791  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   792  			return
   793  		}
   794  
   795  		forward_InjectiveSpotExchangeRPC_TradesV2_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   796  
   797  	})
   798  
   799  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamTradesV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   800  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   801  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   802  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   803  		return
   804  	})
   805  
   806  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_SubaccountOrdersList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   807  		ctx, cancel := context.WithCancel(req.Context())
   808  		defer cancel()
   809  		var stream runtime.ServerTransportStream
   810  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   811  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   812  		var err error
   813  		var annotatedContext context.Context
   814  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountOrdersList", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountOrdersList"))
   815  		if err != nil {
   816  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   817  			return
   818  		}
   819  		resp, md, err := local_request_InjectiveSpotExchangeRPC_SubaccountOrdersList_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   820  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   821  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   822  		if err != nil {
   823  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   824  			return
   825  		}
   826  
   827  		forward_InjectiveSpotExchangeRPC_SubaccountOrdersList_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   828  
   829  	})
   830  
   831  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_SubaccountTradesList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   832  		ctx, cancel := context.WithCancel(req.Context())
   833  		defer cancel()
   834  		var stream runtime.ServerTransportStream
   835  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   836  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   837  		var err error
   838  		var annotatedContext context.Context
   839  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountTradesList", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountTradesList"))
   840  		if err != nil {
   841  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   842  			return
   843  		}
   844  		resp, md, err := local_request_InjectiveSpotExchangeRPC_SubaccountTradesList_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   845  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   846  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   847  		if err != nil {
   848  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   849  			return
   850  		}
   851  
   852  		forward_InjectiveSpotExchangeRPC_SubaccountTradesList_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   853  
   854  	})
   855  
   856  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_OrdersHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   857  		ctx, cancel := context.WithCancel(req.Context())
   858  		defer cancel()
   859  		var stream runtime.ServerTransportStream
   860  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   861  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   862  		var err error
   863  		var annotatedContext context.Context
   864  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrdersHistory", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrdersHistory"))
   865  		if err != nil {
   866  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   867  			return
   868  		}
   869  		resp, md, err := local_request_InjectiveSpotExchangeRPC_OrdersHistory_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   870  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   871  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   872  		if err != nil {
   873  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   874  			return
   875  		}
   876  
   877  		forward_InjectiveSpotExchangeRPC_OrdersHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   878  
   879  	})
   880  
   881  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrdersHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   882  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   883  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   884  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   885  		return
   886  	})
   887  
   888  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_AtomicSwapHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   889  		ctx, cancel := context.WithCancel(req.Context())
   890  		defer cancel()
   891  		var stream runtime.ServerTransportStream
   892  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   893  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   894  		var err error
   895  		var annotatedContext context.Context
   896  		annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/AtomicSwapHistory", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/AtomicSwapHistory"))
   897  		if err != nil {
   898  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   899  			return
   900  		}
   901  		resp, md, err := local_request_InjectiveSpotExchangeRPC_AtomicSwapHistory_0(annotatedContext, inboundMarshaler, server, req, pathParams)
   902  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   903  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   904  		if err != nil {
   905  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   906  			return
   907  		}
   908  
   909  		forward_InjectiveSpotExchangeRPC_AtomicSwapHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   910  
   911  	})
   912  
   913  	return nil
   914  }
   915  
   916  // RegisterInjectiveSpotExchangeRPCHandlerFromEndpoint is same as RegisterInjectiveSpotExchangeRPCHandler but
   917  // automatically dials to "endpoint" and closes the connection when "ctx" gets done.
   918  func RegisterInjectiveSpotExchangeRPCHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
   919  	conn, err := grpc.Dial(endpoint, opts...)
   920  	if err != nil {
   921  		return err
   922  	}
   923  	defer func() {
   924  		if err != nil {
   925  			if cerr := conn.Close(); cerr != nil {
   926  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   927  			}
   928  			return
   929  		}
   930  		go func() {
   931  			<-ctx.Done()
   932  			if cerr := conn.Close(); cerr != nil {
   933  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   934  			}
   935  		}()
   936  	}()
   937  
   938  	return RegisterInjectiveSpotExchangeRPCHandler(ctx, mux, conn)
   939  }
   940  
   941  // RegisterInjectiveSpotExchangeRPCHandler registers the http handlers for service InjectiveSpotExchangeRPC to "mux".
   942  // The handlers forward requests to the grpc endpoint over "conn".
   943  func RegisterInjectiveSpotExchangeRPCHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
   944  	return RegisterInjectiveSpotExchangeRPCHandlerClient(ctx, mux, NewInjectiveSpotExchangeRPCClient(conn))
   945  }
   946  
   947  // RegisterInjectiveSpotExchangeRPCHandlerClient registers the http handlers for service InjectiveSpotExchangeRPC
   948  // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InjectiveSpotExchangeRPCClient".
   949  // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InjectiveSpotExchangeRPCClient"
   950  // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
   951  // "InjectiveSpotExchangeRPCClient" to call the correct interceptors.
   952  func RegisterInjectiveSpotExchangeRPCHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InjectiveSpotExchangeRPCClient) error {
   953  
   954  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Markets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   955  		ctx, cancel := context.WithCancel(req.Context())
   956  		defer cancel()
   957  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   958  		var err error
   959  		var annotatedContext context.Context
   960  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Markets", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Markets"))
   961  		if err != nil {
   962  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   963  			return
   964  		}
   965  		resp, md, err := request_InjectiveSpotExchangeRPC_Markets_0(annotatedContext, inboundMarshaler, client, req, pathParams)
   966  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   967  		if err != nil {
   968  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   969  			return
   970  		}
   971  
   972  		forward_InjectiveSpotExchangeRPC_Markets_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   973  
   974  	})
   975  
   976  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Market_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   977  		ctx, cancel := context.WithCancel(req.Context())
   978  		defer cancel()
   979  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   980  		var err error
   981  		var annotatedContext context.Context
   982  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Market", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Market"))
   983  		if err != nil {
   984  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   985  			return
   986  		}
   987  		resp, md, err := request_InjectiveSpotExchangeRPC_Market_0(annotatedContext, inboundMarshaler, client, req, pathParams)
   988  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
   989  		if err != nil {
   990  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
   991  			return
   992  		}
   993  
   994  		forward_InjectiveSpotExchangeRPC_Market_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   995  
   996  	})
   997  
   998  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamMarkets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   999  		ctx, cancel := context.WithCancel(req.Context())
  1000  		defer cancel()
  1001  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1002  		var err error
  1003  		var annotatedContext context.Context
  1004  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamMarkets", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamMarkets"))
  1005  		if err != nil {
  1006  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1007  			return
  1008  		}
  1009  		resp, md, err := request_InjectiveSpotExchangeRPC_StreamMarkets_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1010  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1011  		if err != nil {
  1012  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1013  			return
  1014  		}
  1015  
  1016  		forward_InjectiveSpotExchangeRPC_StreamMarkets_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1017  
  1018  	})
  1019  
  1020  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_OrderbookV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1021  		ctx, cancel := context.WithCancel(req.Context())
  1022  		defer cancel()
  1023  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1024  		var err error
  1025  		var annotatedContext context.Context
  1026  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbookV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbookV2"))
  1027  		if err != nil {
  1028  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1029  			return
  1030  		}
  1031  		resp, md, err := request_InjectiveSpotExchangeRPC_OrderbookV2_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1032  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1033  		if err != nil {
  1034  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1035  			return
  1036  		}
  1037  
  1038  		forward_InjectiveSpotExchangeRPC_OrderbookV2_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1039  
  1040  	})
  1041  
  1042  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_OrderbooksV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1043  		ctx, cancel := context.WithCancel(req.Context())
  1044  		defer cancel()
  1045  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1046  		var err error
  1047  		var annotatedContext context.Context
  1048  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbooksV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrderbooksV2"))
  1049  		if err != nil {
  1050  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1051  			return
  1052  		}
  1053  		resp, md, err := request_InjectiveSpotExchangeRPC_OrderbooksV2_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1054  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1055  		if err != nil {
  1056  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1057  			return
  1058  		}
  1059  
  1060  		forward_InjectiveSpotExchangeRPC_OrderbooksV2_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1061  
  1062  	})
  1063  
  1064  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrderbookV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1065  		ctx, cancel := context.WithCancel(req.Context())
  1066  		defer cancel()
  1067  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1068  		var err error
  1069  		var annotatedContext context.Context
  1070  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrderbookV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrderbookV2"))
  1071  		if err != nil {
  1072  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1073  			return
  1074  		}
  1075  		resp, md, err := request_InjectiveSpotExchangeRPC_StreamOrderbookV2_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1076  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1077  		if err != nil {
  1078  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1079  			return
  1080  		}
  1081  
  1082  		forward_InjectiveSpotExchangeRPC_StreamOrderbookV2_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1083  
  1084  	})
  1085  
  1086  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrderbookUpdate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1087  		ctx, cancel := context.WithCancel(req.Context())
  1088  		defer cancel()
  1089  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1090  		var err error
  1091  		var annotatedContext context.Context
  1092  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrderbookUpdate", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrderbookUpdate"))
  1093  		if err != nil {
  1094  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1095  			return
  1096  		}
  1097  		resp, md, err := request_InjectiveSpotExchangeRPC_StreamOrderbookUpdate_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1098  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1099  		if err != nil {
  1100  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1101  			return
  1102  		}
  1103  
  1104  		forward_InjectiveSpotExchangeRPC_StreamOrderbookUpdate_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1105  
  1106  	})
  1107  
  1108  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Orders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1109  		ctx, cancel := context.WithCancel(req.Context())
  1110  		defer cancel()
  1111  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1112  		var err error
  1113  		var annotatedContext context.Context
  1114  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Orders", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Orders"))
  1115  		if err != nil {
  1116  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1117  			return
  1118  		}
  1119  		resp, md, err := request_InjectiveSpotExchangeRPC_Orders_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1120  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1121  		if err != nil {
  1122  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1123  			return
  1124  		}
  1125  
  1126  		forward_InjectiveSpotExchangeRPC_Orders_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1127  
  1128  	})
  1129  
  1130  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1131  		ctx, cancel := context.WithCancel(req.Context())
  1132  		defer cancel()
  1133  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1134  		var err error
  1135  		var annotatedContext context.Context
  1136  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrders", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrders"))
  1137  		if err != nil {
  1138  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1139  			return
  1140  		}
  1141  		resp, md, err := request_InjectiveSpotExchangeRPC_StreamOrders_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1142  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1143  		if err != nil {
  1144  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1145  			return
  1146  		}
  1147  
  1148  		forward_InjectiveSpotExchangeRPC_StreamOrders_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1149  
  1150  	})
  1151  
  1152  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_Trades_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1153  		ctx, cancel := context.WithCancel(req.Context())
  1154  		defer cancel()
  1155  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1156  		var err error
  1157  		var annotatedContext context.Context
  1158  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Trades", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/Trades"))
  1159  		if err != nil {
  1160  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1161  			return
  1162  		}
  1163  		resp, md, err := request_InjectiveSpotExchangeRPC_Trades_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1164  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1165  		if err != nil {
  1166  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1167  			return
  1168  		}
  1169  
  1170  		forward_InjectiveSpotExchangeRPC_Trades_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1171  
  1172  	})
  1173  
  1174  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamTrades_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1175  		ctx, cancel := context.WithCancel(req.Context())
  1176  		defer cancel()
  1177  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1178  		var err error
  1179  		var annotatedContext context.Context
  1180  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamTrades", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamTrades"))
  1181  		if err != nil {
  1182  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1183  			return
  1184  		}
  1185  		resp, md, err := request_InjectiveSpotExchangeRPC_StreamTrades_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1186  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1187  		if err != nil {
  1188  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1189  			return
  1190  		}
  1191  
  1192  		forward_InjectiveSpotExchangeRPC_StreamTrades_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1193  
  1194  	})
  1195  
  1196  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_TradesV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1197  		ctx, cancel := context.WithCancel(req.Context())
  1198  		defer cancel()
  1199  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1200  		var err error
  1201  		var annotatedContext context.Context
  1202  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/TradesV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/TradesV2"))
  1203  		if err != nil {
  1204  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1205  			return
  1206  		}
  1207  		resp, md, err := request_InjectiveSpotExchangeRPC_TradesV2_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1208  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1209  		if err != nil {
  1210  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1211  			return
  1212  		}
  1213  
  1214  		forward_InjectiveSpotExchangeRPC_TradesV2_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1215  
  1216  	})
  1217  
  1218  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamTradesV2_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1219  		ctx, cancel := context.WithCancel(req.Context())
  1220  		defer cancel()
  1221  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1222  		var err error
  1223  		var annotatedContext context.Context
  1224  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamTradesV2", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamTradesV2"))
  1225  		if err != nil {
  1226  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1227  			return
  1228  		}
  1229  		resp, md, err := request_InjectiveSpotExchangeRPC_StreamTradesV2_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1230  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1231  		if err != nil {
  1232  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1233  			return
  1234  		}
  1235  
  1236  		forward_InjectiveSpotExchangeRPC_StreamTradesV2_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1237  
  1238  	})
  1239  
  1240  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_SubaccountOrdersList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1241  		ctx, cancel := context.WithCancel(req.Context())
  1242  		defer cancel()
  1243  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1244  		var err error
  1245  		var annotatedContext context.Context
  1246  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountOrdersList", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountOrdersList"))
  1247  		if err != nil {
  1248  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1249  			return
  1250  		}
  1251  		resp, md, err := request_InjectiveSpotExchangeRPC_SubaccountOrdersList_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1252  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1253  		if err != nil {
  1254  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1255  			return
  1256  		}
  1257  
  1258  		forward_InjectiveSpotExchangeRPC_SubaccountOrdersList_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1259  
  1260  	})
  1261  
  1262  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_SubaccountTradesList_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1263  		ctx, cancel := context.WithCancel(req.Context())
  1264  		defer cancel()
  1265  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1266  		var err error
  1267  		var annotatedContext context.Context
  1268  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountTradesList", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/SubaccountTradesList"))
  1269  		if err != nil {
  1270  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1271  			return
  1272  		}
  1273  		resp, md, err := request_InjectiveSpotExchangeRPC_SubaccountTradesList_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1274  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1275  		if err != nil {
  1276  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1277  			return
  1278  		}
  1279  
  1280  		forward_InjectiveSpotExchangeRPC_SubaccountTradesList_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1281  
  1282  	})
  1283  
  1284  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_OrdersHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1285  		ctx, cancel := context.WithCancel(req.Context())
  1286  		defer cancel()
  1287  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1288  		var err error
  1289  		var annotatedContext context.Context
  1290  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrdersHistory", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/OrdersHistory"))
  1291  		if err != nil {
  1292  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1293  			return
  1294  		}
  1295  		resp, md, err := request_InjectiveSpotExchangeRPC_OrdersHistory_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1296  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1297  		if err != nil {
  1298  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1299  			return
  1300  		}
  1301  
  1302  		forward_InjectiveSpotExchangeRPC_OrdersHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1303  
  1304  	})
  1305  
  1306  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_StreamOrdersHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1307  		ctx, cancel := context.WithCancel(req.Context())
  1308  		defer cancel()
  1309  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1310  		var err error
  1311  		var annotatedContext context.Context
  1312  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrdersHistory", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/StreamOrdersHistory"))
  1313  		if err != nil {
  1314  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1315  			return
  1316  		}
  1317  		resp, md, err := request_InjectiveSpotExchangeRPC_StreamOrdersHistory_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1318  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1319  		if err != nil {
  1320  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1321  			return
  1322  		}
  1323  
  1324  		forward_InjectiveSpotExchangeRPC_StreamOrdersHistory_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1325  
  1326  	})
  1327  
  1328  	mux.Handle("POST", pattern_InjectiveSpotExchangeRPC_AtomicSwapHistory_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1329  		ctx, cancel := context.WithCancel(req.Context())
  1330  		defer cancel()
  1331  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1332  		var err error
  1333  		var annotatedContext context.Context
  1334  		annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/AtomicSwapHistory", runtime.WithHTTPPathPattern("/injective_spot_exchange_rpc.InjectiveSpotExchangeRPC/AtomicSwapHistory"))
  1335  		if err != nil {
  1336  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1337  			return
  1338  		}
  1339  		resp, md, err := request_InjectiveSpotExchangeRPC_AtomicSwapHistory_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1340  		annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1341  		if err != nil {
  1342  			runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1343  			return
  1344  		}
  1345  
  1346  		forward_InjectiveSpotExchangeRPC_AtomicSwapHistory_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1347  
  1348  	})
  1349  
  1350  	return nil
  1351  }
  1352  
  1353  var (
  1354  	pattern_InjectiveSpotExchangeRPC_Markets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "Markets"}, ""))
  1355  
  1356  	pattern_InjectiveSpotExchangeRPC_Market_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "Market"}, ""))
  1357  
  1358  	pattern_InjectiveSpotExchangeRPC_StreamMarkets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "StreamMarkets"}, ""))
  1359  
  1360  	pattern_InjectiveSpotExchangeRPC_OrderbookV2_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "OrderbookV2"}, ""))
  1361  
  1362  	pattern_InjectiveSpotExchangeRPC_OrderbooksV2_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "OrderbooksV2"}, ""))
  1363  
  1364  	pattern_InjectiveSpotExchangeRPC_StreamOrderbookV2_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "StreamOrderbookV2"}, ""))
  1365  
  1366  	pattern_InjectiveSpotExchangeRPC_StreamOrderbookUpdate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "StreamOrderbookUpdate"}, ""))
  1367  
  1368  	pattern_InjectiveSpotExchangeRPC_Orders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "Orders"}, ""))
  1369  
  1370  	pattern_InjectiveSpotExchangeRPC_StreamOrders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "StreamOrders"}, ""))
  1371  
  1372  	pattern_InjectiveSpotExchangeRPC_Trades_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "Trades"}, ""))
  1373  
  1374  	pattern_InjectiveSpotExchangeRPC_StreamTrades_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "StreamTrades"}, ""))
  1375  
  1376  	pattern_InjectiveSpotExchangeRPC_TradesV2_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "TradesV2"}, ""))
  1377  
  1378  	pattern_InjectiveSpotExchangeRPC_StreamTradesV2_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "StreamTradesV2"}, ""))
  1379  
  1380  	pattern_InjectiveSpotExchangeRPC_SubaccountOrdersList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "SubaccountOrdersList"}, ""))
  1381  
  1382  	pattern_InjectiveSpotExchangeRPC_SubaccountTradesList_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "SubaccountTradesList"}, ""))
  1383  
  1384  	pattern_InjectiveSpotExchangeRPC_OrdersHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "OrdersHistory"}, ""))
  1385  
  1386  	pattern_InjectiveSpotExchangeRPC_StreamOrdersHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "StreamOrdersHistory"}, ""))
  1387  
  1388  	pattern_InjectiveSpotExchangeRPC_AtomicSwapHistory_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"injective_spot_exchange_rpc.InjectiveSpotExchangeRPC", "AtomicSwapHistory"}, ""))
  1389  )
  1390  
  1391  var (
  1392  	forward_InjectiveSpotExchangeRPC_Markets_0 = runtime.ForwardResponseMessage
  1393  
  1394  	forward_InjectiveSpotExchangeRPC_Market_0 = runtime.ForwardResponseMessage
  1395  
  1396  	forward_InjectiveSpotExchangeRPC_StreamMarkets_0 = runtime.ForwardResponseStream
  1397  
  1398  	forward_InjectiveSpotExchangeRPC_OrderbookV2_0 = runtime.ForwardResponseMessage
  1399  
  1400  	forward_InjectiveSpotExchangeRPC_OrderbooksV2_0 = runtime.ForwardResponseMessage
  1401  
  1402  	forward_InjectiveSpotExchangeRPC_StreamOrderbookV2_0 = runtime.ForwardResponseStream
  1403  
  1404  	forward_InjectiveSpotExchangeRPC_StreamOrderbookUpdate_0 = runtime.ForwardResponseStream
  1405  
  1406  	forward_InjectiveSpotExchangeRPC_Orders_0 = runtime.ForwardResponseMessage
  1407  
  1408  	forward_InjectiveSpotExchangeRPC_StreamOrders_0 = runtime.ForwardResponseStream
  1409  
  1410  	forward_InjectiveSpotExchangeRPC_Trades_0 = runtime.ForwardResponseMessage
  1411  
  1412  	forward_InjectiveSpotExchangeRPC_StreamTrades_0 = runtime.ForwardResponseStream
  1413  
  1414  	forward_InjectiveSpotExchangeRPC_TradesV2_0 = runtime.ForwardResponseMessage
  1415  
  1416  	forward_InjectiveSpotExchangeRPC_StreamTradesV2_0 = runtime.ForwardResponseStream
  1417  
  1418  	forward_InjectiveSpotExchangeRPC_SubaccountOrdersList_0 = runtime.ForwardResponseMessage
  1419  
  1420  	forward_InjectiveSpotExchangeRPC_SubaccountTradesList_0 = runtime.ForwardResponseMessage
  1421  
  1422  	forward_InjectiveSpotExchangeRPC_OrdersHistory_0 = runtime.ForwardResponseMessage
  1423  
  1424  	forward_InjectiveSpotExchangeRPC_StreamOrdersHistory_0 = runtime.ForwardResponseStream
  1425  
  1426  	forward_InjectiveSpotExchangeRPC_AtomicSwapHistory_0 = runtime.ForwardResponseMessage
  1427  )