Skip to content

Commit

Permalink
Add sell functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
gmverdon committed Jan 31, 2018
1 parent 1ceb104 commit 5ebdf4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scenes/TradeHub/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default class TradeHub extends Component {
};

sell = (price) => {
binance.sell(this.state.selectedCrypto.symbol, this.state.quantity, price);
alert(`Sold ${this.state.quantity} at: ${price}!`);
this.setState({
sold: true,
Expand Down

0 comments on commit 5ebdf4a

Please sign in to comment.