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

GDAX Brokerage updates #4635

Merged
merged 3 commits into from
Sep 9, 2020
Merged

GDAX Brokerage updates #4635

merged 3 commits into from
Sep 9, 2020

Conversation

StefanoRaggi
Copy link
Contributor

Description

  • Replaced fill detection from trade stream with monitor task
  • Removed the data subscriptions upon connect
  • Order fees for fills are now the real fees paid (previously they were calculated by the brokerage model)
  • Updated/fixed unit and integration tests (all green now)

Related Issue

n/a

Motivation and Context

Live trading stability

Requires Documentation Change

No.

How Has This Been Tested?

  • Live trading locally
  • Live trading in cloud
  • Unit and integration tests

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which improves implementation)
  • Performance (non-breaking change which improves performance. Please add associated performance test and results)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • All new and existing tests passed.

var orderFee = new OrderFee(new CashAmount(
GetFillFee(_algorithm.UtcTime, fillPrice, fillQuantity, isMaker),
currency));
var orderFee = new OrderFee(new CashAmount(fill.Fee, currency));
Copy link
Member

Choose a reason for hiding this comment

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

Nice! 👍

@@ -89,50 +94,9 @@ internal enum GdaxEndpointType { Public, Private }
_priceProvider = priceProvider;
_aggregator = aggregator;

WebSocket.Open += (sender, args) =>
{
var tickers = new[]
Copy link
Member

Choose a reason for hiding this comment

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

Beautiful 👍

@StefanoRaggi StefanoRaggi force-pushed the gdax-brokerage-updates-3 branch from 1534069 to 48105ec Compare August 27, 2020 18:38
@StefanoRaggi StefanoRaggi force-pushed the gdax-brokerage-updates-3 branch 2 times, most recently from ca52e65 to e13e120 Compare September 9, 2020 18:17
- Replaced fill detection from trade stream with monitor task
- Order fees for fills are now the real fees paid (previously they were calculated by the brokerage model)
- All unit and integration tests are green
- Remove unnecessary signals
- Add "gdax-fill-monitor-timeout" config setting
@StefanoRaggi StefanoRaggi force-pushed the gdax-brokerage-updates-3 branch from e13e120 to 8b4384c Compare September 9, 2020 18:35
@Martin-Molinero Martin-Molinero merged commit d7e5437 into master Sep 9, 2020
@StefanoRaggi StefanoRaggi deleted the gdax-brokerage-updates-3 branch September 9, 2020 19:19
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.

2 participants