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

Bitstamp: Add missing API fields #1510

Merged

Conversation

Beadko
Copy link
Contributor

@Beadko Beadko commented Mar 30, 2024

PR Description

Issues picked up during PR#1423 but were considered out of scope. In addition, the main error checks changed from assert to require.

Fixes # (issue)

Type of change

Please delete options that are not relevant and add an x in [] as item is complete.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How has this been tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and
also consider improving test coverage whilst working on a certain feature or package.

  • go test ./... -race
  • golangci-lint run
  • Test Bitstamp_test

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation and regenerated documentation via the documentation tool
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally and on Github Actions with my changes
  • Any dependent changes have been merged and published in downstream modules

assert.Equal(t, 0.50000000, res.AmountAtCreate, "AmountAtCreate should match")
assert.Equal(t, 110.00, res.LimitPrice, "LimitPrice should match")
assert.Equal(t, "1234123412341234", res.ClientOrderID, "ClientOrderID should match")
assert.Equal(t, "BTC/USD", res.Market, "Market should match")
Copy link
Contributor Author

@Beadko Beadko Mar 30, 2024

Choose a reason for hiding this comment

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

One comment was regarding the Currency is not set for []Order type. Bitstamp open orders for markets do not include currency in the response so I have added "Market" which was missing

@gloriousCode gloriousCode requested a review from a team April 8, 2024 00:02
@gloriousCode gloriousCode added the review me This pull request is ready for review label Apr 8, 2024
Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

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

Nice work Beadko!

exchanges/bitstamp/bitstamp_test.go Show resolved Hide resolved
exchanges/bitstamp/bitstamp_wrapper.go Outdated Show resolved Hide resolved
@Beadko Beadko force-pushed the bugfix/bitstamp_add_missing_fields branch from b5c530f to 45384a1 Compare April 10, 2024 13:41
@Beadko Beadko requested a review from gloriousCode April 10, 2024 13:47
Copy link

codecov bot commented Apr 10, 2024

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 36.05%. Comparing base (f1ff951) to head (e6caa92).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1510      +/-   ##
==========================================
+ Coverage   36.03%   36.05%   +0.01%     
==========================================
  Files         411      411              
  Lines      177750   177754       +4     
==========================================
+ Hits        64061    64088      +27     
+ Misses     105839   105816      -23     
  Partials     7850     7850              
Files Coverage Δ
exchanges/bitstamp/bitstamp_wrapper.go 53.23% <70.00%> (-0.16%) ⬇️

... and 12 files with indirect coverage changes

Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

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

Just one really minor thing 😄

exchanges/bitstamp/bitstamp_test.go Outdated Show resolved Hide resolved
@Beadko Beadko requested a review from gloriousCode April 14, 2024 07:15
Copy link
Collaborator

@gloriousCode gloriousCode left a comment

Choose a reason for hiding this comment

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

tACK! Thanks beadko!

@gloriousCode gloriousCode added the gcrc GloriousCode Review Complete label Apr 14, 2024
Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

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

One thing from me everything else looks good. Nice work.

exchanges/bitstamp/bitstamp_types.go Outdated Show resolved Hide resolved
@shazbert shazbert added reconstructing Based on PR feedback, this is currently being reworked and is not to be merged and removed review me This pull request is ready for review labels Apr 14, 2024
@thrasher- thrasher- changed the title Bugfix/bitstamp add missing fields Bitstamp: Add missing API fields Apr 17, 2024
@Beadko Beadko force-pushed the bugfix/bitstamp_add_missing_fields branch from 7edc42d to e6caa92 Compare May 5, 2024 09:41
@Beadko Beadko requested a review from shazbert May 5, 2024 09:45
Copy link
Collaborator

@shazbert shazbert left a comment

Choose a reason for hiding this comment

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

Thanks Bea! changes tack.

@shazbert shazbert added review me This pull request is ready for review and removed reconstructing Based on PR feedback, this is currently being reworked and is not to be merged labels May 5, 2024
Copy link
Collaborator

@thrasher- thrasher- left a comment

Choose a reason for hiding this comment

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

tACK mock tests on and off (unauth). Thanks @Beadko !

@thrasher- thrasher- merged commit a46622a into thrasher-corp:master May 6, 2024
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gcrc GloriousCode Review Complete review me This pull request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants