I hereby claim:
- I am juanfranblanco on github.
- I am juanblanco (https://keybase.io/juanblanco) on keybase.
- I have a public key whose fingerprint is 3D14 B15E 5C25 3302 9404 6D62 366F 7F42 488F 7DEE
To claim this, I am signing this object:
""" | |
The portfolio rebalancing bot will buy and sell to maintain a | |
constant asset allocation ratio of exactly 50/50 = fiat/BTC | |
""" | |
# line too long - pylint: disable=C0301 | |
# too many local variables - pylint: disable=R0914 | |
import glob | |
import strategy |
""" | |
The portfolio rebalancing bot will buy and sell to maintain a | |
constant asset allocation ratio of exactly 50/50 = fiat/BTC | |
""" | |
import strategy | |
DISTANCE = 7 # percent price distance of next rebalancing orders | |
FIAT_COLD = 0 # Amount of Fiat stored at home but included in calculations | |
COIN_COLD = 0 # Amount of Coin stored at home but included in calculations |
""" | |
a simple stop loss bot. | |
adjust STOP_PRICE and STOP_VOLUME to your needs. | |
The file can be reloaded after editing without | |
restarting goxtool by simply pressing the l key. | |
""" | |
import strategy | |
import goxapi | |
# pylint: disable=C0301 |
""" | |
The portfolio rebalancing bot will buy and sell to maintain a | |
constant asset allocation ratio of exactly 50/50 = fiat/BTC | |
""" | |
import strategy | |
DISTANCE = 7 # percent price distance of next rebalancing orders | |
FIAT_COLD = 0 # Amount of Fiat stored at home but included in calculations | |
COIN_COLD = 0 # Amount of Coin stored at home but included in calculations |
var ngAppElem = angular.element(document.querySelector('[ng-app]') || document); | |
window.injector = ngAppElem.injector(); | |
window.inject = injector.invoke; | |
window.$rootScope = ngAppElem.scope(); | |
Object.defineProperty(window, '$scope', { | |
get: function () { | |
var elem = angular.element(__commandLineAPI.$0); | |
return elem.isolateScope() || elem.scope(); |
// Requires the Toast plugin: https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin | |
// And Ionic Framework: http://ionicframework.com | |
// ngCordova is used here, but easily removed: http://ngcordova.com/ | |
// When running in Cordova, show the native toast. Outside of Cordova, show an Ionic Popup for the same period of time. | |
// Uses the API for the Toast plugin - message, duration, position. | |
// Differences are that: Ionic Popup ignores position, and doesn't allow doing anything while it shows. | |
.factory('Toast', function($rootScope, $timeout, $ionicPopup, $cordovaToast) { | |
return { | |
show: function (message, duration, position) { |
/* | |
get SSH.NET (BSD License: http://sshnet.codeplex.com/license) | |
with NuGet: | |
>Install-Package SSH.NET -Version 2013.4.7 | |
or just get the dll from here: http://j.mp/sshNet | |
*/ | |
using System; |
I hereby claim:
To claim this, I am signing this object:
var ABI = "[{'constant':false,'inputs':[],'name':'createID','outputs':[{'name':'','type':'address'}],'payable':false,'type':'function'},{'constant':true,'inputs':[],'name':'owner','outputs':[{'name':'','type':'address'}],'payable':false,'type':'function'},{'anonymous':false,'inputs':[{'indexed':true,'name':'_from','type':'address'},{'indexed':false,'name':'_controllerAddress','type':'address'}],'name':'ReturnIDController','type':'event'}]"; | |
var BYTE_CODE = "0x60606040525b33600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b612891806100576000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806348573542146100465780638da5cb5b14610098575bfe5b341561004e57fe5b6100566100ea565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100a057fe5b6100a861019f565b604051808273fffffffffffffffffffffff |
using Nethereum.Geth; | |
using Nethereum.Hex.HexTypes; | |
using Nethereum.Web3.Accounts.Managed; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |