-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New oracle plugin forex_wise #46
Conversation
plugins/forex_wise/forex_wise.go
Outdated
func NewWiseClient(conf *config.PluginConfig) *WiseClient { | ||
client := common.NewClient(conf.Key, time.Second*time.Duration(conf.Timeout), conf.Endpoint) | ||
logger := hclog.New(&hclog.LoggerOptions{ | ||
Name: "WiseForex", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace Line70 with
Name: conf.Name, // it is the plugin binary's name in the FS.
return price, fmt.Errorf("wrong base %s", to) | ||
} | ||
|
||
price.Symbol = s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a line after Line 163:
price.Volume = types.DefaultVolume.String()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for you contributions, please also update the README and the sample configuration file to help the end user to utilize the new plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
All Submissions: