gateio / gateapi-go

100 stars 32 forks source link

GetTotalBalanceOpts #28

Closed chengkenli closed 2 years ago

chengkenli commented 2 years ago

I encountered a problem in the development process. Can you help me solve it, As for the non essential parameter, how is it assigned, For example:

"currency" parameter in "GetTotalBalance" module, I set the "currency" parameter to, but I don't know how to set it,

The document indicates that GetTotalBalanceOpts struct can be used.

Can you provide an example?

revilwang commented 2 years ago
opts := &gateapi.GetTotalBalanceOpts{Currency: optional.NewString(currency)}
chengkenli commented 2 years ago

Thank you very much for helping me solve this problem!!