Skip to content

Commit 90108ca

Browse files
Source CoinAPI - add quote stream to coin api (#20600)
* 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 <[email protected]>
1 parent 606e59e commit 90108ca

File tree

7 files changed

+50
-4
lines changed

7 files changed

+50
-4
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
- name: Coin API
287287
sourceDefinitionId: 919984ef-53a2-479b-8ffe-9c1ddb9fc3f3
288288
dockerRepository: airbyte/source-coin-api
289-
dockerImageTag: 0.1.0
289+
dockerImageTag: 0.1.1
290290
documentationUrl: https://docs.airbyte.com/integrations/sources/coin-api
291291
sourceType: api
292292
releaseStage: alpha

airbyte-config/init/src/main/resources/seed/source_specs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,7 @@
25722572
supportsNormalization: false
25732573
supportsDBT: false
25742574
supported_destination_sync_modes: []
2575-
- dockerImage: "airbyte/source-coin-api:0.1.0"
2575+
- dockerImage: "airbyte/source-coin-api:0.1.1"
25762576
spec:
25772577
documentationUrl: "https://docs.airbyte.com/integrations/sources/coin-api"
25782578
connectionSpecification:

airbyte-integrations/connectors/source-coin-api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ COPY source_coin_api ./source_coin_api
3434
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
3535
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
3636

37-
LABEL io.airbyte.version=0.1.0
37+
LABEL io.airbyte.version=0.1.1
3838
LABEL io.airbyte.name=airbyte/source-coin-api

airbyte-integrations/connectors/source-coin-api/integration_tests/configured_catalog.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
},
1818
"sync_mode": "full_refresh",
1919
"destination_sync_mode": "overwrite"
20+
},
21+
{
22+
"stream": {
23+
"name": "quotes_historical_data",
24+
"json_schema": {},
25+
"supported_sync_modes": ["full_refresh"]
26+
},
27+
"sync_mode": "full_refresh",
28+
"destination_sync_mode": "overwrite"
2029
}
2130
]
2231
}

airbyte-integrations/connectors/source-coin-api/source_coin_api/coin_api.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.1.0"
1+
version: "0.1.1"
22

33
definitions:
44
selector:
@@ -58,11 +58,18 @@ definitions:
5858
primary_key: "uuid"
5959
path: "/trades/{{ config['symbol_id'] }}/history"
6060
stream_cursor_field: "time_exchange"
61+
quotes_historical_data_stream:
62+
$ref: "*ref(definitions.base_stream)"
63+
$options:
64+
name: "quotes_historical_data"
65+
path: "/quotes/{{ config['symbol_id'] }}/history"
6166

6267
streams:
6368
- "*ref(definitions.ohlcv_historical_data_stream)"
6469
- "*ref(definitions.trades_historical_data_stream)"
70+
- "*ref(definitions.quotes_historical_data_stream)"
6571

6672
check:
6773
stream_names:
6874
- "ohlcv_historical_data"
75+
- "quotes_historical_data"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"symbol_id": {
6+
"type": ["null", "string"]
7+
},
8+
"time_exchange": {
9+
"type": ["null", "string"],
10+
"format": "date-time"
11+
},
12+
"time_coinapi": {
13+
"type": ["null", "string"],
14+
"format": "date-time"
15+
},
16+
"ask_price": {
17+
"type": ["null", "number"]
18+
},
19+
"ask_size": {
20+
"type": ["null", "number"]
21+
},
22+
"big_price": {
23+
"type": ["null", "number"]
24+
},
25+
"big_size": {
26+
"type": ["null", "number"]
27+
}
28+
}
29+
}

docs/integrations/sources/coin-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ The following fields are required fields for the connector to work:
5050

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

0 commit comments

Comments
 (0)