mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2026-01-07 13:24:43 +01:00
Add columns param to get_ticker_price, including tests
This commit is contained in:
27
tests/fixtures/ticker_price_with_multiple_columns.yaml
vendored
Normal file
27
tests/fixtures/ticker_price_with_multiple_columns.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept: ['*/*']
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
Authorization: [Token 0000000000000000000000000000000000000000]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json]
|
||||
User-Agent: [tiingo-python-client 0.5.0]
|
||||
method: GET
|
||||
uri: https://api.tiingo.com/tiingo/daily/GOOGL/prices?format=json&resampleFreq=daily&columns=open,high,low,close,volume
|
||||
response:
|
||||
body: {string: '[{"close":165.14,"date":"2024-10-22T00:00:00+00:00","high":165.77,"low":162.98,"open":162.98,"volume":16568121}]'}
|
||||
headers:
|
||||
Allow: ['GET, HEAD, OPTIONS']
|
||||
Content-Length: ['1982']
|
||||
Content-Type: [application/json]
|
||||
Date: ['Wed, 23 Oct 2024 02:42:06 GMT']
|
||||
Server: [nginx/1.10.1]
|
||||
Vary: ['Accept, Cookie']
|
||||
X-Frame-Options: [SAMEORIGIN]
|
||||
status: {code: 200, message: OK}
|
||||
version: 1
|
||||
|
||||
|
||||
|
||||
27
tests/fixtures/ticker_price_with_volume_column.yaml
vendored
Normal file
27
tests/fixtures/ticker_price_with_volume_column.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
interactions:
|
||||
- request:
|
||||
body: null
|
||||
headers:
|
||||
Accept: ['*/*']
|
||||
Accept-Encoding: ['gzip, deflate']
|
||||
Authorization: [Token 0000000000000000000000000000000000000000]
|
||||
Connection: [keep-alive]
|
||||
Content-Type: [application/json]
|
||||
User-Agent: [tiingo-python-client 0.5.0]
|
||||
method: GET
|
||||
uri: https://api.tiingo.com/tiingo/daily/GOOGL/prices?format=json&resampleFreq=daily&columns=volume
|
||||
response:
|
||||
body: {string: '[{"date":"2024-10-22T00:00:00+00:00","volume":16568121}]'}
|
||||
headers:
|
||||
Allow: ['GET, HEAD, OPTIONS']
|
||||
Content-Length: ['1001']
|
||||
Content-Type: [application/json]
|
||||
Date: ['Wed, 23 Oct 2024 02:42:06 GMT']
|
||||
Server: [nginx/1.10.1]
|
||||
Vary: ['Accept, Cookie']
|
||||
X-Frame-Options: [SAMEORIGIN]
|
||||
status: {code: 200, message: OK}
|
||||
version: 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user