-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/DF-18812 add vwap endpoint to blocksize capital ea (#3025)
* DF-18812 blocksize capital vwap endpoint * add changeset * update readme * review fix for fixedvwap types * Include error messages in logs --------- Co-authored-by: Alec Gard <[email protected]>
- Loading branch information
1 parent
878c80c
commit 9a97711
Showing
13 changed files
with
296 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@chainlink/blocksize-capital-adapter': minor | ||
--- | ||
|
||
Add vwap endpoint to blocksize-capital EA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { endpoint as price } from './price' | ||
export { endpoint as cryptolwba } from './crypto-lwba' | ||
export { endpoint as vwap } from './vwap' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { | ||
PriceEndpoint, | ||
priceEndpointInputParametersDefinition, | ||
} from '@chainlink/external-adapter-framework/adapter' | ||
import { InputParameters } from '@chainlink/external-adapter-framework/validation' | ||
import { config } from '../config' | ||
import { transport } from '../transport/vwap' | ||
import { SingleNumberResultResponse } from '@chainlink/external-adapter-framework/util' | ||
|
||
const inputParameters = new InputParameters(priceEndpointInputParametersDefinition, [ | ||
{ | ||
base: 'AMPL', | ||
quote: 'USD', | ||
}, | ||
]) | ||
|
||
export type BaseEndpointTypes = { | ||
Parameters: typeof inputParameters.definition | ||
Settings: typeof config.settings | ||
Response: SingleNumberResultResponse | ||
} | ||
|
||
export const endpoint = new PriceEndpoint({ | ||
name: 'vwap', | ||
aliases: ['crypto-vwap'], | ||
transport, | ||
inputParameters, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.