Skip to content

Commit

Permalink
Source CoinAPI - add quote stream to coin api (#20600)
Browse files Browse the repository at this point in the history
* feat: add quote stream to coin api

* fix: restore configured_catalog.json

* docs: updated changelog with quotes stream

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
  • Loading branch information
sajarin and octavia-squidington-iii authored Jan 5, 2023
1 parent 606e59e commit 90108ca
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 4 deletions.
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 |

0 comments on commit 90108ca

Please sign in to comment.