Skip to content
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

Merged
merged 3 commits into from
Feb 13, 2025
Merged

Conversation

metatarz
Copy link
Contributor

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Does your submission pass tests?
  • Have you lint your code locally prior to submission?

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",
Copy link
Collaborator

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
Copy link
Collaborator

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()

Copy link
Collaborator

@Jason-Zhangxin-Chen Jason-Zhangxin-Chen left a 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.

Copy link
Collaborator

@Jason-Zhangxin-Chen Jason-Zhangxin-Chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Jason-Zhangxin-Chen Jason-Zhangxin-Chen merged commit 9405279 into autonity:master Feb 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants