Merge tag 'v0.4.4'
0.4.4 # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCgAdFiEE8ghYQ1eZpvEAiagrUAnheX8D+NAFAmEc9HkACgkQUAnheX8D # +NANmw//WZo8nk1ODqx2AVi1wlrcbNsA3RzzocAZkXiIBa5O2eqQk6vsG017OZFn # /cBRqmsxWnYQK4IS22s0Ec85c8RkPP/XcJxneKYg/VTI4cbnD2gpJMUBm11Tuvkn # CmdbikVjcBzlLYXpNIYDiwkQo3dbS3/6+qqxr+4YAHpK7CZqg+lEdSR5jFOOJzSw # zTAk0Y5c8yMpQubkeSWQL6hYQ+Ei0JxISv6hrG3ulE9rhIpm5Re+cDHu/HXd8Q7x # 1FFRsH8RgaUvA/dpmBON3TYztqHyEqt840Vvr/afakA/phZ/SG1javeZkrl8WXMG # Yhyrbi8f62/5uEY5foG4p6b8+83K2Gtyj8W8KU3I5AFIMwiHJ37RYsOa2JuIhJb5 # nV5ET568vI1AHF3G1R7O39lbQJpk+0arShbGbkidFyxxhvI/Qm5Fx8cTIqxLltYE # YbApNgR1YvQvFEB68fTsGn8WtEPCt3mrg/YnjHY6JQloeDje3IruQhOBOlkP1Shl # +tL3o7RUx0lCZNT0Lunuh6E82nSRS6DIq4/V975JMgwQDZngTj+9cDPhuNkZFUbk # LCOga/0hVs2IDbWRQ7f7l6PbldiLp9FY3c5XWoMkfr1QZsCF2YGHBovq6GBTqgS2 # p24ciXW0yyo3D1qPc1mMrNf40aLltN47ShFyodvRLSfDZD3LrpU= # =9LIp # -----END PGP SIGNATURE----- # gpg: Signature made Wed Aug 18 13:52:25 2021 # gpg: using RSA key F20858435799A6F10089A82B5009E1797F03F8D0 # gpg: Can't check signature: No public key
This commit is contained in:
7
LICENSE
Normal file
7
LICENSE
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Copyright (c) 2020 Dennis Reimann <mail@dennisreimann.de> (https://dennisreimann.de)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
@@ -5,6 +5,13 @@ First off: Here's to you, [Bittr](https://getbittr.com/) – you will be missed!
|
|||||||
This script is not a full replacement for the incredible service Bittr offered, but it's a start:
|
This script is not a full replacement for the incredible service Bittr offered, but it's a start:
|
||||||
Automate your Stacking Sats process by regularly placing buy orders using the [Kraken API](https://www.kraken.com/features/api).
|
Automate your Stacking Sats process by regularly placing buy orders using the [Kraken API](https://www.kraken.com/features/api).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
The original [Bittr is back](https://getbittr.com/press-releases/bittr-is-back)!
|
||||||
|
This script is still fully working.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## ✋ Caveat
|
## ✋ Caveat
|
||||||
|
|
||||||
You need to install the dependency [kraken-api](https://github.com/nothingisdead/npm-kraken-api), which is a third-party package.
|
You need to install the dependency [kraken-api](https://github.com/nothingisdead/npm-kraken-api), which is a third-party package.
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ module.exports = async (kraken, validate, { getEnv, getEnvOpt }) => {
|
|||||||
console.log('📈 Ask:', ask, fiat)
|
console.log('📈 Ask:', ask, fiat)
|
||||||
console.log('📉 Bid:', bid, fiat, '\n')
|
console.log('📉 Bid:', bid, fiat, '\n')
|
||||||
|
|
||||||
|
if (parseFloat(fiatBalance) < parseFloat(amount)) {
|
||||||
|
console.log('❌ Insufficient funds')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Place order
|
// Place order
|
||||||
const details = { pair, type: 'buy', ordertype, price, volume }
|
const details = { pair, type: 'buy', ordertype, price, volume }
|
||||||
if (validate) details.validate = true
|
if (validate) details.validate = true
|
||||||
|
|||||||
19
package-lock.json
generated
19
package-lock.json
generated
@@ -1,14 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "stacking-sats-kraken",
|
"name": "stacking-sats-kraken",
|
||||||
"version": "0.4.3",
|
"version": "0.4.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "0.4.3",
|
"version": "0.4.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"kraken-api": "1.0.1"
|
"kraken-api": "1.0.1"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/dennisreimann/stacking-sats-kraken?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@sindresorhus/is": {
|
"node_modules/@sindresorhus/is": {
|
||||||
@@ -226,9 +229,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/normalize-url": {
|
"node_modules/normalize-url": {
|
||||||
"version": "4.5.0",
|
"version": "4.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz",
|
||||||
"integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==",
|
"integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
@@ -472,9 +475,9 @@
|
|||||||
"integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ=="
|
"integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ=="
|
||||||
},
|
},
|
||||||
"normalize-url": {
|
"normalize-url": {
|
||||||
"version": "4.5.0",
|
"version": "4.5.1",
|
||||||
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz",
|
||||||
"integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ=="
|
"integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA=="
|
||||||
},
|
},
|
||||||
"once": {
|
"once": {
|
||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "stacking-sats-kraken",
|
"name": "stacking-sats-kraken",
|
||||||
"version": "0.4.3",
|
"version": "0.4.4",
|
||||||
"description": "Use the Kraken API to stack sats",
|
"description": "Use the Kraken API to stack sats",
|
||||||
"author": "Dennis Reimann <mail@dennisreimann.de>",
|
"author": "Dennis Reimann <mail@dennisreimann.de>",
|
||||||
"homepage": "https://github.com/dennisreimann/stacking-sats-kraken",
|
"homepage": "https://github.com/dennisreimann/stacking-sats-kraken",
|
||||||
|
|||||||
Reference in New Issue
Block a user