-
Notifications
You must be signed in to change notification settings - Fork 325
[OPDATA-4255] DBAG Tadegate v2 #4120
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d70c27b
First commit with refactor'd 2 endpoints
chray-zhang b09927c
Fixed tests
chray-zhang 7a9b648
Changeset
chray-zhang 6074fb0
Added bidsz and asksz
chray-zhang 0109fcb
revision
chray-zhang 3600147
added back files
chray-zhang d8eac8d
Put base back in
chray-zhang c401485
tests and comments
chray-zhang 2c5fb43
Updated snapshot
chray-zhang 46524fd
removed timestamps
chray-zhang 7e4654a
removed optional
chray-zhang 86f71e2
Merge branch 'main' into opdata-4255-tradegate-v2
chray-zhang a7cc0bb
Revision
chray-zhang 0263a0d
removed files
chray-zhang 4ba7a78
fixed nit
chray-zhang 668c6ef
revision
chray-zhang 9c8ebb6
Fixes multi market subscriptions
mohamed-mehany 1105ec8
Minor change
mohamed-mehany 41eccbd
Typo fix
mohamed-mehany 9cb9d5f
Merge branch 'main' into opdata-4255-tradegate-v2
mohamed-mehany File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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/deutsche-boerse-adapter': minor | ||
--- | ||
|
||
Split the endpoints and added support for tradegate |
This file contains hidden or 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 +1,2 @@ | ||
export { endpoint as lwba } from './lwba' | ||
export { endpoint as price } from './price' |
This file contains hidden or 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 hidden or 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,24 @@ | ||
import { AdapterEndpoint } from '@chainlink/external-adapter-framework/adapter' | ||
import { config } from '../config' | ||
import { priceProtobufWsTransport } from '../transport/price' | ||
import { inputParameters } from './lwba' | ||
|
||
export interface PriceResponse { | ||
Result: number | null | ||
Data: { | ||
latestPrice: number | ||
} | ||
} | ||
|
||
export type BaseEndpointTypes = { | ||
Parameters: typeof inputParameters.definition | ||
Response: PriceResponse | ||
Settings: typeof config.settings | ||
} | ||
|
||
export const endpoint = new AdapterEndpoint({ | ||
mxiao-cll marked this conversation as resolved.
Show resolved
Hide resolved
|
||
name: 'price', | ||
aliases: [], | ||
transport: priceProtobufWsTransport, | ||
inputParameters, | ||
}) |
This file contains hidden or 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,13 +1,13 @@ | ||
import { expose, ServerInstance } from '@chainlink/external-adapter-framework' | ||
import { Adapter } from '@chainlink/external-adapter-framework/adapter' | ||
import { config } from './config' | ||
import { lwba } from './endpoint' | ||
import { lwba, price } from './endpoint' | ||
|
||
export const adapter = new Adapter({ | ||
defaultEndpoint: lwba.name, | ||
name: 'DEUTSCHE_BOERSE', | ||
config, | ||
endpoints: [lwba], | ||
endpoints: [lwba, price], | ||
}) | ||
|
||
export const server = (): Promise<ServerInstance | undefined> => expose(adapter) |
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.