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

Commit

Permalink
[DOCS]: add trailing semi-colon from code example (#2636)
Browse files Browse the repository at this point in the history
";" missing
  • Loading branch information
bmarchesini authored and askmike committed Dec 2, 2018
1 parent aba34d0 commit 015d103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/extending/add_an_exchange.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ The callback needs to have the parameters of `err` and `ticker`. Ticker needs to

### getFee

this.exchange.getFee(callback)
this.exchange.getFee(callback);

The callback needs to have the parameters of `err` and `fee`. Fee is a float that represents the amount the exchange takes out of the orders Gekko places. If an exchange has a fee of 0.2% this should be `0.002`.

### getPortfolio

this.exchange.getPortfolio(callback)
this.exchange.getPortfolio(callback);

The callback needs to have the parameters of `err` and `portfolio`. Portfolio needs to be an array of all currencies and assets combined in the form of objects, an example object looks like `{name: 'BTC', amount: 1.42131}` (name needs to be an uppercase string, amount needs to be a float).

### getLotSize

this.exchange.getLotSize(tradeType, amount, size, callback)
this.exchange.getLotSize(tradeType, amount, size, callback);

The callback needs to have the parameters of `err` and `lot`. Lot needs to be an object with `amount` and `purchase` size appropriately for the exchange. In the event that the lot is too small, return 0 to both fields and this will generate a lot size warning in the portfolioManager.

Expand Down

0 comments on commit 015d103

Please sign in to comment.