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

feat(price-feeder): add mexc provider #1339

Merged
merged 20 commits into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions price-feeder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Features

- [1328](https://github.com/umee-network/umee/pull/1328) Add bitget provider.
- [1339](https://github.com/umee-network/umee/pull/1339) Add mexc provider.

### Bugs

Expand Down
3 changes: 2 additions & 1 deletion price-feeder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The `price-feeder` tool is responsible for performing the following:
Binance and Osmosis, based on operator configuration. These exchange rates
are exposed via an API and are used to feed into the main oracle process.
2. Taking aggregated exchange rate price data and submitting those exchange rates
on-chain to Umee's `x/oracle` module following Umee's [Oracle](https://github.com/umee-network/umee/tree/main/x/oracle/spec)
on-chain to Umee's `x/oracle` module following Umee's [Oracle](https://github.com/umee-network/umee/tree/main/x/oracle#readme)
specification.

<!-- markdown-link-check-disable -->
Expand All @@ -33,6 +33,7 @@ The list of current supported providers:
- [Gate](https://www.gate.io/)
- [Huobi](https://www.huobi.com/en-us/)
- [Kraken](https://www.kraken.com/en-us/)
- [Mexc](https://www.mexc.com/)
- [Okx](https://www.okx.com/)
- [Osmosis](https://app.osmosis.zone/)
<!-- markdown-link-check-enable -->
Expand Down
1 change: 1 addition & 0 deletions price-feeder/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var (
provider.ProviderCoinbase: {},
provider.ProviderFTX: {},
provider.ProviderBitget: {},
provider.ProviderMexc: {},
provider.ProviderMock: {},
}

Expand Down
2 changes: 1 addition & 1 deletion price-feeder/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/umee-network/umee/price-feeder
go 1.19

require (
github.com/armon/go-metrics v0.4.0
github.com/cosmos/cosmos-sdk v0.46.1
github.com/go-playground/validator/v10 v10.11.0
github.com/golangci/golangci-lint v1.49.0
Expand Down Expand Up @@ -45,7 +46,6 @@ require (
github.com/Workiva/go-datastructures v1.0.53 // indirect
github.com/alexkohler/prealloc v1.0.0 // indirect
github.com/alingse/asasalint v0.0.11 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/ashanbrown/forbidigo v1.3.0 // indirect
github.com/ashanbrown/makezero v1.1.1 // indirect
github.com/aws/aws-sdk-go v1.40.45 // indirect
Expand Down
3 changes: 3 additions & 0 deletions price-feeder/oracle/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ func NewProvider(
case provider.ProviderBitget:
return provider.NewBitgetProvider(ctx, logger, endpoint, providerPairs...)

case provider.ProviderMexc:
return provider.NewMexcProvider(ctx, logger, endpoint, providerPairs...)

case provider.ProviderMock:
return provider.NewMockProvider(), nil
}
Expand Down
Loading