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

Source CoinAPI - add quote stream to coin api #20600

Merged
merged 8 commits into from
Jan 5, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
- name: Coin API
sourceDefinitionId: 919984ef-53a2-479b-8ffe-9c1ddb9fc3f3
dockerRepository: airbyte/source-coin-api
dockerImageTag: 0.1.0
dockerImageTag: 0.1.1
documentationUrl: https://docs.airbyte.com/integrations/sources/coin-api
sourceType: api
releaseStage: alpha
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2572,7 +2572,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-coin-api:0.1.0"
- dockerImage: "airbyte/source-coin-api:0.1.1"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/coin-api"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-coin-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_coin_api ./source_coin_api
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/source-coin-api
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "quotes_historical_data",
"json_schema": {},
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "0.1.0"
version: "0.1.1"

definitions:
selector:
Expand Down Expand Up @@ -58,11 +58,18 @@ definitions:
primary_key: "uuid"
path: "/trades/{{ config['symbol_id'] }}/history"
stream_cursor_field: "time_exchange"
quotes_historical_data_stream:
$ref: "*ref(definitions.base_stream)"
$options:
name: "quotes_historical_data"
path: "/quotes/{{ config['symbol_id'] }}/history"

streams:
- "*ref(definitions.ohlcv_historical_data_stream)"
- "*ref(definitions.trades_historical_data_stream)"
- "*ref(definitions.quotes_historical_data_stream)"

check:
stream_names:
- "ohlcv_historical_data"
- "quotes_historical_data"
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"symbol_id": {
"type": ["null", "string"]
},
"time_exchange": {
"type": ["null", "string"],
"format": "date-time"
},
"time_coinapi": {
"type": ["null", "string"],
"format": "date-time"
},
"ask_price": {
"type": ["null", "number"]
},
"ask_size": {
"type": ["null", "number"]
},
"big_price": {
"type": ["null", "number"]
},
"big_size": {
"type": ["null", "number"]
}
}
}
1 change: 1 addition & 0 deletions docs/integrations/sources/coin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ The following fields are required fields for the connector to work:

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:-----------|
| 0.1.1 | 2022-12-19 | [20600](https://github.com/airbytehq/airbyte/pull/20600) | Add quotes historical data stream|
| 0.1.0 | 2022-10-21 | [18302](https://github.com/airbytehq/airbyte/pull/18302) | New source |