-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from gobeli/feature/ccxt
Feature/ccxt
- Loading branch information
Showing
15 changed files
with
327 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
# pump-and-dump [](https://ci.appveyor.com/project/gobeli/pump-and-dump) # | ||
# pump-and-dump # | ||
[](https://ci.appveyor.com/project/gobeli/pump-and-dump)[](https://travis-ci.org/gobeli/pump-and-dump) | ||
|
||
A pump and dump application for cryptocurrencies using the bittrex API | ||
A pump and dump application for cryptocurrencies using [ccxt](https://github.com/ccxt/ccxt) | ||
|
||
Setup generated with [electron-vue](https://github.com/SimulatedGREG/electron-vue) | ||
|
||
## [Releases](https://github.com/gobeli/pump-and-dump/releases) ## | ||
|
||
## Tips | ||
- Some exchanges have timeouts / request limits, to prevent them adjust the polling timeout via the textbox so stuff doesn't break ;) | ||
- I have only tested some exchanges, which means I can't guarantee that it will work on every exchange [ccxt](https://github.com/ccxt/ccxt) provides. If yours does not work open an Issue or even better a PR with a fix. | ||
|
||
## Screenshots ## | ||
 | ||
|
||
 | ||
|
||
## License | ||
Released under the MIT license. See [LICENSE](LICENSE) for more info. | ||
|
||
_Use at your own risk_ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<vue-chart | ||
:rows="$store.state.marketData.map(x => [null, x.last, x.buy, x.sell])" | ||
:columns="[{ type: 'string', label: '' },{ type: 'number', label: 'Last' }, { type: 'number', label: 'Buy' }, { type: 'number', label: 'Sell' }]" | ||
:options="chartOptions" | ||
></vue-chart> | ||
</template> | ||
|
||
<script> | ||
import { handleError } from '../helper'; | ||
export default { | ||
name: 'pnd-chart', | ||
props: ['strategy', 'pollingTimeout', 'market'], | ||
data: () => ({ | ||
marketData: [], | ||
tickerInterval: null, | ||
chartOptions: { | ||
annotations: { | ||
duration: 1000, | ||
easing: 'out', | ||
}, | ||
hAxis: { | ||
title: 'time', | ||
}, | ||
vAxis: { | ||
title: 'price', | ||
}, | ||
}, | ||
}), | ||
created() { | ||
this.createTicker(this.pollingTimeout); | ||
}, | ||
watch: { | ||
pollingTimeout(newVal, oldVal) { | ||
this.createTicker(newVal); | ||
} | ||
}, | ||
methods: { | ||
createTicker(pollingTimeout) { | ||
clearInterval(this.tickerInterval); | ||
this.tickerInterval = setInterval(this.updateTicker.bind(this), pollingTimeout); | ||
this.updateTicker(); | ||
}, | ||
updateTicker() { | ||
this.$store.state.exchange.fetchTicker(this.market).catch(handleError(this)) | ||
.then(tick => | ||
this.$store.commit('ADD_MARKETDATA', {last: tick.last, | ||
buy: this.$store.state.running ? this.$store.state.settings.buy : null, | ||
sell: this.$store.state.running ? this.$store.state.settings.sell : null | ||
}) | ||
); | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.