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

fix(cryptocurrency): update crypto responses types #55

Merged
merged 1 commit into from
Apr 27, 2024
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
90 changes: 30 additions & 60 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,28 +716,18 @@ av.cryptocurrency
}
timeSeries: {
'<datetime>': {
openMarket: string;
openUSD: string;
highMarket: string;
highUSD: string;
lowMarket: string;
lowUSD: string;
closeMarket: string;
closeUSD: string;
volume: string;
marketCap: string;
open: string
high: string
low: string
close: string
volume: string
},
'<datetime>': {
openMarket: string;
openUSD: string;
highMarket: string;
highUSD: string;
lowMarket: string;
lowUSD: string;
closeMarket: string;
closeUSD: string;
volume: string;
marketCap: string;
open: string
high: string
low: string
close: string
volume: string
},
...
}
Expand Down Expand Up @@ -773,28 +763,18 @@ av.cryptocurrency
}
timeSeries: {
'<datetime>': {
openMarket: string;
openUSD: string;
highMarket: string;
highUSD: string;
lowMarket: string;
lowUSD: string;
closeMarket: string;
closeUSD: string;
volume: string;
marketCap: string;
open: string
high: string
low: string
close: string
volume: string
},
'<datetime>': {
openMarket: string;
openUSD: string;
highMarket: string;
highUSD: string;
lowMarket: string;
lowUSD: string;
closeMarket: string;
closeUSD: string;
volume: string;
marketCap: string;
open: string
high: string
low: string
close: string
volume: string
},
...
}
Expand Down Expand Up @@ -830,28 +810,18 @@ av.cryptocurrency
}
timeSeries: {
'<datetime>': {
openMarket: string;
openUSD: string;
highMarket: string;
highUSD: string;
lowMarket: string;
lowUSD: string;
closeMarket: string;
closeUSD: string;
volume: string;
marketCap: string;
open: string
high: string
low: string
close: string
volume: string
},
'<datetime>': {
openMarket: string;
openUSD: string;
highMarket: string;
highUSD: string;
lowMarket: string;
lowUSD: string;
closeMarket: string;
closeUSD: string;
volume: string;
marketCap: string;
open: string
high: string
low: string
close: string
volume: string
},
...
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alphavantage-wrapper-ts",
"version": "3.0.10",
"version": "4.0.0",
"description": "Alpha Vantage API wrapper",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
13 changes: 4 additions & 9 deletions src/cryptocurrency/dto/daily-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ export type DailyMetadata = {
}

export type DailyTimeSeries = {
openMarket: string
openUSD: string
highMarket: string
highUSD: string
lowMarket: string
lowUSD: string
closeMarket: string
closeUSD: string
open: string
high: string
low: string
close: string
volume: string
marketCap: string
}

export type DailyResponse = {
Expand Down
13 changes: 4 additions & 9 deletions src/cryptocurrency/dto/monthly-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ export type MonthlyMetadata = {
}

export type MonthlyTimeSeries = {
openMarket: string
openUSD: string
highMarket: string
highUSD: string
lowMarket: string
lowUSD: string
closeMarket: string
closeUSD: string
open: string
high: string
low: string
close: string
volume: string
marketCap: string
}

export type MonthlyResponse = {
Expand Down
13 changes: 4 additions & 9 deletions src/cryptocurrency/dto/weekly-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ export type WeeklyMetadata = {
}

export type WeeklyTimeSeries = {
openMarket: string
openUSD: string
highMarket: string
highUSD: string
lowMarket: string
lowUSD: string
closeMarket: string
closeUSD: string
open: string
high: string
low: string
close: string
volume: string
marketCap: string
}

export type WeeklyResponse = {
Expand Down
Loading