This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Zenbot Bitstamp extension #266
Closed
Closed
Changes from 29 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
94d836f
Add files via upload
tuxitor 87613b0
Delete exchanges.md
tuxitor ef20364
Create exchanges.md
tuxitor 009f885
Delete exchanges.md
tuxitor 8571b6e
Create developers.md
tuxitor 2eddac8
Update developers.md
tuxitor 4f86032
Update developers.md
tuxitor e3f4482
Merge branch 'master' of https://github.com/carlos8f/zenbot
4b54f3f
New command "zenbot balance <selector>"
tuxitor b23a912
New command "zenbot balance <selector>"
tuxitor 671459a
Merge branch 'master' of https://github.com/carlos8f/zenbot
eee2986
The increase in traffic on the exhanges we have seen lately can be qu…
685ec0a
Resolved merge conflict by incorporating both suggestions.
c2a94e3
Merge branch 'master' into master
tuxitor 386130d
Merge branch 'master' of https://github.com/eigilb/zenbot
0f6602c
Updated conf-sample.js
4d87e08
Small changes in exchange.js
4f0000f
Small change in conf-sample.js
c9dbeec
Small insert a LF in gront of error messages
fc1dc4e
Done some cosmetic changes
338be24
Merge branch 'master' of https://github.com/carlos8f/zenbot
5ebc788
Merge branch 'master' of https://github.com/carlos8f/zenbot
a03a13d
Prpare buy/sell for using market order and make it suitable for excha…
c2e5140
Prepare buy/sell for using market order and make it suitable for exch…
b8ac748
Small changes
4c4b000
Merge branch 'master' of https://github.com/carlos8f/zenbot
1c60673
Merge branch 'master' of https://github.com/carlos8f/zenbot
6099841
Changes to package.json and exchange.js
ad42640
Delete syncfromCarlos.sh
tuxitor 8919ca4
Fixed indenting
13bb7f6
Fix for communication hiccups
d319c1c
Fix the 5 figures issue in Bitfinex
2b93e48
Fix the fix for the Bitfinex 5 figure limit issue
9670841
Merge branch 'master' of https://github.com/carlos8f/zenbot
503f4dd
Overview of a Zenbot websocket agent
tuxitor 5b0c01e
Adding program and some file updates for the Zentalk concept
568ba50
Removed port setting from cmd line options in favor of auto grab
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -31,7 +31,11 @@ module.exports = function container (get, set, clear) { | |
var order_types = ['maker', 'taker'] | ||
if (!so.order_type in order_types || !so.order_type) { | ||
so.order_type = 'maker' | ||
} | ||
} else { | ||
so.order_type = so.taker ? 'taker' : 'maker' | ||
so.order_type === 'taker' ? delete so.taker : delete so.maker | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indenting issue |
||
s.options.order_type = so.order_type | ||
so.mode = 'live' | ||
so.strategy = c.strategy | ||
so.stats = true | ||
|
@@ -56,7 +60,7 @@ module.exports = function container (get, set, clear) { | |
}) | ||
} | ||
else { | ||
console.log('placing order...') | ||
console.log('placing ' + so.order_type + ' sell order...') | ||
} | ||
} | ||
setInterval(checkOrder, c.order_poll_time) | ||
|
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 |
---|---|---|
|
@@ -51,6 +51,13 @@ c.bitfinex.secret = 'YOUR-SECRET' | |
// May use 'exchange' or 'trading' wallet balances. However margin trading may not work...read the API documentation. | ||
c.bitfinex.wallet = 'exchange' | ||
|
||
// to enable Bitfinex trading, enter your API credentials: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
c.bitstamp = {} | ||
c.bitstamp.key = 'YOUR-API-KEY' | ||
c.bitstamp.secret = 'YOUR-SECRET' | ||
// A client ID is required on Bitstamp | ||
c.bitstamp.client_id = 'YOUR-CLIENT-ID' | ||
|
||
// Optional stop-order triggers: | ||
|
||
// sell if price drops below this % of bought price (0 to disable) | ||
|
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,7 @@ | ||
module.exports = { | ||
_ns: 'zenbot', | ||
_name: 'bitstamp', | ||
|
||
'exchanges.bitstamp': require('./exchange'), | ||
'exchanges.list[]': '#exchanges.bitstamp' | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indenting issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm.. Have tabstops set to 2 without filling with spaces. Expands in other environments