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

Implement Historic Price API End Point #8

Merged
merged 4 commits into from Jan 18, 2018
Merged

Conversation

namantw
Copy link
Contributor

@namantw namantw commented Jan 17, 2018

Fixes : #4

@@ -14,4 +14,17 @@ func main() {

USD, GBP, EUR := coindesk.CurrentPrice()
fmt.Println(USD, GBP, EUR)

var historyPrice []Price
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't declare and initialize in separate line.

historyPrice := coindesk.HistoryPrice("2013-09-01", "2013-09-05")

This will be good.

OR

Instead of []Price, it should be []coindesk.Price

coindesk.go Outdated
)

type Price struct {
date time.Time
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename date and price to Date and Price, so that user can access it. Change wherever you mentioned it and update example.

Read the Travis CI details.

@namantw
Copy link
Contributor Author

namantw commented Jan 17, 2018

@mubaris please review

@mubaris mubaris merged commit 15f802b into gostudent:master Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants