Skip to content

Commit

Permalink
feat: Add crypto.com provider (#1448)
Browse files Browse the repository at this point in the history
* Add crypto.com provider

* Run gofmt

* Fixes for getting crypto provider to work locally

* Fix lint issues

* Use math/rand for random subscription ID

* Replace math/rand with crypto/rand

* Uncapitalize ID func param in newCryptoSubscriptionMsg

* Update CHANGELOG.md

* Remove unsused fields

* Address pr suggestions

* Address pr suggestions part 2
  • Loading branch information
rbajollari authored Oct 5, 2022
1 parent e1fde34 commit 91ab9fc
Show file tree
Hide file tree
Showing 7 changed files with 679 additions and 0 deletions.
4 changes: 4 additions & 0 deletions price-feeder/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

- [1428](https://github.com/umee-network/umee/pull/1428) Update umeed version to an actual tag.

### Features

- [1448](https://github.com/umee-network/umee/pull/1448) Add crypto.com provider.

## [v1.0.0](https://github.com/umee-network/umee/releases/tag/price-feeder%2Fv1.0.0) - 2022-09-19

### Features
Expand Down
1 change: 1 addition & 0 deletions price-feeder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The list of current supported providers:

- [Binance](https://www.binance.com/en)
- [Coinbase](https://www.coinbase.com/)
- [Crypto](https://crypto.com/)
- [FTX](https://ftx.com/)
- [Gate](https://www.gate.io/)
- [Huobi](https://www.huobi.com/en-us/)
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 @@ -41,6 +41,7 @@ var (
provider.ProviderFTX: {},
provider.ProviderBitget: {},
provider.ProviderMexc: {},
provider.ProviderCrypto: {},
provider.ProviderMock: {},
}

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 @@ -491,6 +491,9 @@ func NewProvider(
case provider.ProviderMexc:
return provider.NewMexcProvider(ctx, logger, endpoint, providerPairs...)

case provider.ProviderCrypto:
return provider.NewCryptoProvider(ctx, logger, endpoint, providerPairs...)

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

0 comments on commit 91ab9fc

Please sign in to comment.