Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

v0.6 support for bitx (aka Luno) #2335

Merged
merged 3 commits into from
Jul 20, 2018
Merged

v0.6 support for bitx (aka Luno) #2335

merged 3 commits into from
Jul 20, 2018

Conversation

hiyan
Copy link
Contributor

@hiyan hiyan commented Jul 19, 2018

Update exchange for v0.6.

const BitX = require("bitx");
const _ = require('lodash');
const moment = require('moment');
const log = require('../../core/log');
Copy link
Owner

Choose a reason for hiding this comment

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

can you not import anything from outside the exchange folder? That way people can use Gekko Broker as a standalone lib. Thanks!

Copy link
Contributor Author

@hiyan hiyan Jul 20, 2018

Choose a reason for hiding this comment

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

Alright... i'll push an update later.

Curious, how do you plan to handle logging for exchanges moving forward?

@askmike
Copy link
Owner

askmike commented Jul 20, 2018

Woa great PR Thanks a lot! Just one small nit, see comment :)

Side note: did this take you very long and where the docs very clear?

@hiyan
Copy link
Contributor Author

hiyan commented Jul 20, 2018

I didnt depend on the docs much, just did an quick diff of the docs and mainly "diff-ing" the new binance + polonex exchanges.

Oh yes, this reminds me, I had to add in roundAmount and roundPrice. This wasnt documented.

@askmike
Copy link
Owner

askmike commented Jul 20, 2018

Seems to work great!

@askmike askmike merged commit 24685ac into askmike:develop Jul 20, 2018
@askmike
Copy link
Owner

askmike commented Jul 20, 2018

TODO Follow up (I will pick those up, unless you want to do another PR):

  • fix dependency: should be managed by gekko broker (gekko/exchange/package.json)
  • rename exchange name + file to luno.
  • add to GB docs that luno is now supported.

@hiyan
Copy link
Contributor Author

hiyan commented Jul 20, 2018

Sure.. that seems simple enough :)
I've already changed bitx/luno support in supported_exchanges.md. Is there anywhere else that needs editing?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants