Skip to content

Conversation

dboyliao
Copy link
Collaborator

@dboyliao dboyliao commented Feb 18, 2025

  • add missing slug in the struct tags.
  • update data types for fields.
  • bug fix in pagination query function

@dboyliao dboyliao requested a review from c9s February 18, 2025 03:45
@CLAassistant
Copy link

CLAassistant commented Feb 18, 2025

CLA assistant check
All committers have signed the CLA.

Base automatically changed from dboy/coinbase to main February 25, 2025 06:23
@dboyliao dboyliao changed the title Add unit tests for CoinBase API FIX: [exchange] fix bugs and revise Coinbase request structs Feb 26, 2025
@@ -0,0 +1,3 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

ignore this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it's helpful to all the vscode users so I add it here.
It will help Go extension to load the local env file (just as instructed in the README) while running tests in vscode.
Should I ignore this?

type GetCandlesResponse []RawCandle

func (rc *RawCandle) Candle() *Candle {
values := *rc
Copy link
Collaborator

Choose a reason for hiding this comment

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

Verify that the rc is not nil and that the slice length is as expected. ( e.q. len == 6 ). Otherwise, the service will panic.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@dboyliao dboyliao merged commit 02c2962 into main Feb 26, 2025
3 checks passed
@dboyliao dboyliao deleted the dboy/coinbase-test branch February 26, 2025 05:58
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.

3 participants