MCPcopy Create free account
hub / github.com/6boris/web3-template / GetTokenPrice

Method GetTokenPrice

api/interface/web3/defi_http.pb.go:64–75  ·  view source on GitHub ↗
(ctx context.Context, in *GetTokenPriceRequest, opts ...http.CallOption)

Source from the content-addressed store, hash-verified

62}
63
64func (c *DefiHTTPClientImpl) GetTokenPrice(ctx context.Context, in *GetTokenPriceRequest, opts ...http.CallOption) (*GetTokenPriceReply, error) {
65 var out GetTokenPriceReply
66 pattern := "/api/gateway/interface/web3/defi/price"
67 path := binding.EncodeURL(pattern, in, true)
68 opts = append(opts, http.Operation(OperationDefiGetTokenPrice))
69 opts = append(opts, http.PathTemplate(pattern))
70 err := c.cc.Invoke(ctx, "GET", path, nil, &out, opts...)
71 if err != nil {
72 return nil, err
73 }
74 return &out, err
75}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected