Mono-repo for DeFi Blockchain price oracle service with e2e setup. Includes infrastructure, scripts and serverless functions for the Price Oracle service.
🚧 Work in progress.
On release types: [ published, prereleased ]
, GitHub Action will automatically build all packages in this repo and
publish a build artifact.
Salmon is designed with AWS Lambda in mind, although the individual packages can be used to fetch prices or push prices to oracles. See the configuration section below for more information.
salmon-lambda-functions
is configurable via the following environment variables:
OCEAN_URL
: url of local or remote whale instanceNETWORK
: regtest|testnet|mainnetCURRENCY
: USD, etcSYMBOLS
: a comma separated list of symbols to fetch from the providersORACLE_ID
: the id of the oracle to push prices to on DeFiChainPRIVATE_KEY_SSM_KEY
: SSM key in AWS for the private keyAPI_TOKEN
: (optional) API token for certain providers e.g. Tiingo, Finnhubb, IEXCloud
IntelliJ IDEA is the IDE of choice for writing and maintaining this library. IntelliJ's files are included for convenience with basic toolchain setup but use of IntelliJ is totally optional.
If you discover a security vulnerability in
@defichain/salmon
, please see submit it privately.
By using @defichain/salmon
(this repo), you (the user) agree to be bound by the terms of this license.