Bitcoin Forum
June 25, 2024, 07:44:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 »
261  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 03:41:32 PM
thx again, i re-pasted the rebalancing bot and now it works, still i cant see what the error in the above code was, anyway it prints out now.
I got this code now:

Code:
"""
The portfolio rebalancing bot will buy and sell to maintain a
constant asset allocation ratio of exactly 50/50 = fiat/BTC
"""

import strategy
import goxapi

DISTANCE    = 7     # percent price distance of next rebalancing orders
MARKER      = 7     # lowest digit of price to identify bot's own orders
COIN        = 1E8   # number of satoshi per coin, this is a constant.

def add_marker(price, marker):
    """encode a marker in the price value to find bot's own orders"""
    return price / 10 * 10 + marker

def has_marker(price, marker):
    """return true if the price value has the marker"""
    return (price % 10) == marker

def mark_own(price):
    """return the price with our own marker embedded"""
    return add_marker(price, MARKER)

def is_own(price):
    """return true if this price has our own marker"""
    return has_marker(price, MARKER)



class Strategy(strategy.Strategy):
    """a protfolio rebalancing bot"""
    def __init__(self, gox):
        strategy.Strategy.__init__(self, gox)
        self.temp_halt = False

    def slot_before_unload(self, _sender, _data):
        pass

    def slot_keypress(self, gox, (key)):
        """a key has been pressed"""

        if key == ord("c"):
            # cancel existing rebalancing orders and suspend trading
            self.debug("canceling all rebalancing orders")
            self.temp_halt = True
            #self.cancel_orders()


could you please point me in the right direction, so i can do some reading, about the "virtual slots"- i suppose the functions in the Strategy Class are those slots, i.e.
"slot_history_changed" - one is supposed to use this function to put some code in, when it is "fired"  - what i dont get is, the def is only fount in the strategy.py file - how does the goxtool and goxapi fire something into it?? thx!
262  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 03:25:11 PM
Hy prof7bit,
maybe i am blind, but i left the parts as they were in the rebalancing bot.

what i saw now from looking into
http://www.rugatu.com/questions/14260/python-trading-bot-configuration-file

is that the rebalancing bot does
import strategy
and in strategy.py there is a function slot_keypress
in the bot of tarzan he doesnt import strategy and defines the class Strategy(goxapi.BaseObject):
- but if thats the problem, how does the balancing bot work?
thx
263  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 03:09:01 PM
thx, so your log shows the message, mine doesnt; there is something wrong with my setup, but i cant figure out what.
i.e. this script prints out the messages:
http://www.rugatu.com/questions/14260/python-trading-bot-configuration-file

my bot  does load - debug message appears:

2013-04-30 15:30:24,177:DEBUG:testbot.Strategy:testbot.Strategy unloaded

and keystroke is registered, but the self.debug message doesnt print.

If I use it i.e. with an non existent bot file (goxtool.py --strategy=anything.py

it does not recognize the key pressed.
I am stuck with this
264  Economy / Trading Discussion / Re: ncurses based MtGox live monitor and trading-bot-framework on: May 01, 2013, 01:35:10 PM
hy
i started to look into goxbot and i must admit, i dont get anything, but anyway i will reach the goal of my own little bot. Wink plz help!

in my strategy module i got (copied most of it of the 50/50-balance boot)

Code:
import strategy
import goxapi


class Strategy(strategy.Strategy):

    """a protfolio rebalancing bot"""
    def __init__(self, gox):
        strategy.Strategy.__init__(self, gox)
        self.temp_halt = False


    def slot_before_unload(self, _sender, _data):
        pass

    def slot_keypress(self, gox, (key)):
if key == ord("b"):
    self.debug("canceling all rebalancing orders")






If key "b" is pressed goxtool displays: someone pressed key b,
But it doesnt display "canceling all rebalancing orders".
so, how to write messages to the log output?


btw: is there an easy way to get rid of the Winconsole output in the main window? I am running tail on the log in a second window, so its just superfluid for me?
265  Economy / Service Discussion / Re: Bitcoin-24.com matching engine seems broken, site down. on: April 27, 2013, 10:00:03 PM
the announcement of the prosecutor only talks about money, not bitcoins, so maybe, bitcoins are not confiscated.
266  Economy / Service Discussion / Re: Bitcoin-24.com matching engine seems broken, site down. on: April 27, 2013, 10:22:11 AM
here it is
https://www.bundesanzeiger.de/ebanzwww/wexsservlet?session.sessionid=177f1349e818404e843a1aa94d580597&page.navid=detailsearchlisttodetailsearchdetail&fts_search_list.selected=88a9d5e82d42f197&fts_search_list.destHistoryId=00202


basically its telling: the prosecutors have secured the money of the german bank account. it stays with the prosecutor until the procedure is finished. it can only be withdrawn by the owners by filing a civil lawsuit in germany.

before anyone is sueing btc24 i would recommend to first claim your money at btc 24 lawyer. if they dont react properly you can still file a lawsuit. btc 24 owner simon hausdorf/his lawyer mr röhl do not even know of exactly what is the accusation. they have not received the prosecutors files yet. it is way to early to conclude that a crime really happened. check out this thread first:

http://board.btc24-help.com/viewtopic.php?f=3&t=141

 


Caution! I did not say that for claiming the money Hausdorf has to be sued. check with your german lawyer first! maybe one has to file a claim against the state of germany to get the money - those procedures of "secured funds" differ from country to country.
267  Economy / Trading Discussion / Re: goxtool bot: stop loss (optionally trailing stop) on: April 27, 2013, 10:00:14 AM
hy, i just started goxtool first time, is there a main thread for goxtool?
btw i use centos 6.4, for whom it interests, this howto works perfectly to get the
minimum required python version 2.7 onto centos without ruining your os:
http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/
also you need to pip install pccryptp
Thx for goxtools, already love it Smiley
268  Economy / Service Discussion / Re: Bitcoin-24.com matching engine seems broken, site down. on: April 27, 2013, 09:32:23 AM
here it is
https://www.bundesanzeiger.de/ebanzwww/wexsservlet?session.sessionid=177f1349e818404e843a1aa94d580597&page.navid=detailsearchlisttodetailsearchdetail&fts_search_list.selected=88a9d5e82d42f197&fts_search_list.destHistoryId=00202


basically its telling: the prosecutors have secured the money of the german bank account. it stays with the prosecutor until the procedure is finished. it can only be withdrawn by the owners by filing a civil lawsuit in germany.
269  Economy / Trading Discussion / Re: Jurisdiction for an exchange on: April 24, 2013, 11:19:27 AM
sealand is an urban myth, just a guy and a platform

Which is not any different than any other government leaders around the world.  They aren't actually special either, and are not ontologically different from you and me.  Just a guy, and a bunch of weapons to make his word "law."

yeah, but as far as i know that sealand guy did follow the british insolvency proceedings when his "sealand" was off funds..
270  Economy / Trading Discussion / Re: Jurisdiction for an exchange on: April 23, 2013, 04:56:20 PM
sealand is an urban myth, just a guy and a platform
271  Economy / Service Discussion / Bitstamp fees - how are they calculated? on: April 19, 2013, 10:30:57 PM
Hy,
I dont get the maths, please help Wink

According to
https://www.bitstamp.net/fee_schedule/

for trades <$500 fee should be 0.5%

I currently made some trades <5$ and always got a fee of 0.03!

5/100/2=0.025

Ok, if they only use 2 digits behind comma, it makes sense - its 0.03
So trades from 5 to 9 $ could have a fee of 0.03.

but my trades where from 4.39$ to 4.53$

4.5/100/2=0.0225
Rounded thats 0,02. Not 0.03. thats a difference of 50%....

Is this some using of float....? (little joke). How to calc the fee?

Second, do I get it right: when selling they substract 0.05% from the income - when buying you buy order money minus 0.05% ?

I saw the limit order mask only accepts two digits behind comma for $ amounts. As for a trade once executed, how many digits are computed?

thx

272  Other / Beginners & Help / Re: Please help using Bitstamp APIs on: April 19, 2013, 10:09:04 PM
hy
bitstamp uses post, not get. you cant put post requests in ulr-field of a browser. either use a form or a script
url would be

https://www.bitstamp.net/api/balance?user:xxxx&password:xxxx
273  Alternate cryptocurrencies / Altcoin Discussion / Re: [ANN][LTC][Pool][PPLNS] [ Stratum ] give-me-ltc.com 2% FEE [10 block confirms!] on: April 19, 2013, 03:14:08 PM
Quote
Once a address is added the only way to change it is to retype it and then for you to enter your pin to confirm. Leave it with me i will keep looking and shoot you an email when i can find out more...

Hy, Thanks, yes, I stick with you and e-mail on that subject. Only thing to the public:
Does anyone know whom the adress
LbDQ1nZZYiZ4snMRguUKMSm5nu9qn7ZP
belongs to?
Maybe my account was hacked?
274  Alternate cryptocurrencies / Altcoin Discussion / Re: [ANN][LTC][Pool][PPLNS] [ Stratum ] give-me-ltc.com 2% FEE [10 block confirms!] on: April 18, 2013, 06:37:03 PM
hy,
mailed to support today, but no answer yet. maybe one of you can help me - i joined the pool some days ago and got the first automatic payout, but i didnt receive it, so i checked with the account settings, and the following adress is stored as payout adress:

LbDQ1nZZYiZ4snMRguUKMSm5nu9qn7ZPz9

thing is - i dont have that adress! call me completely dumb, but as i remember i put my real adress in the settings after registering..
what could have happened?
does anyone know whom the adress belongs to? i use litecoin-win 0.6.3c beta

thx!
275  Economy / Service Discussion / Re: Bitcoin-24.com matching engine seems broken, site down. on: April 15, 2013, 10:15:17 AM
hy guys, fasten your seatbelts:
http://www.reddit.com/user/TAiS46

2. post
276  Economy / Trading Discussion / Re: Mt.Gox AML/KYC Process Explained on: April 12, 2013, 10:56:03 PM
hy
i keep sending verification pdf´s and everytime you answer: the adress you gave us doesnt match the adress on the pdf you sent. BUT i cant find any form to correct the adress is gave you. plz help
gtz
277  Economy / Service Discussion / Re: Bitcoin-24.com matching engine seems broken, site down. on: April 12, 2013, 10:49:46 PM
yeah of course, but theres a difference between discussing the fact that a site went offline, if api keys where misused, if the admin is trading himself by setting limits he knows of before they are published, if innodb or myisam was used etc etc and that whining and aggravating and instantly threatening everybody.
no one knows if anything is lost at bitcoin-24, we will see. theres no point in getting pissed at the moment, besides beeing an asshole Smiley
278  Economy / Service Discussion / Re: Bitcoin-24.com matching engine seems broken, site down. on: April 12, 2013, 10:09:48 PM

Be sure i checked that number before, i don't wanna have hundreds of ppl calling him, keeping him away from work if he tries to fix the engine  Wink .


bla bla, build your own exchange, but be sure i sue your ass off if it lags more then 0.0001 !
you knew what you did when you registered with bitcoin-24. if something is fishy its 100% your fault, this is not your protected little consumer world, this is the bitcoin universe. never invest money you cant afford to loose, never (real wordl, internet or anywhere). stay cool or stay away.
279  Economy / Service Discussion / Re: Bitcoin-24.com matching engine seems broken, site down. on: April 12, 2013, 06:35:27 PM
Seems like the next big pile of shit is gonna hit the fan in 20 minutes



Edited names, domains and sums, but be sure they are on the original. Might edit few words tho. And there are attorneys and judges on stand-by duty this weekend...

And btw, if someone will give Simon a call, look up his number at www.hotfrog.de/Firmen/Simon-Hausdorf-Webdesign

you are an a*****e
280  Other / Beginners & Help / Re: Where to buy Bitcoins with Credit Card ? on: March 24, 2013, 04:09:49 PM
thx for the advice!
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!