Search content
Sort by

Showing 20 of 468 results by valiz
Post
Topic
Board Discutii Servicii
Re: Bot / Automated Trading pe Poloniex .. mai face cineva pe aici ?
by
valiz
on 05/04/2017, 08:25:13 UTC
Am incercat acum cateva luni un bot o saptamana dar l-am oprit pentru ca pierdea bani. Cred ca poti sa castigi doar prin speculatii norocoase ori sa pacalesti alti speculatori ori sa ai acces la informatii despre toate ordinele de pe piata.

Uite cod in python3 daca iti trebuie. Era ceva de pe net dar l-am mai peticit pe ici pe colo sa mearga.

Dar codul pentru algoritmul meu de pierdut bani nu il dau la nimeni  Cheesy

Code:

from urllib.parse import urlencode
from urllib.request import urlopen, Request

import json
import time
import hmac,hashlib
 
def createTimeStamp(datestr, format="%Y-%m-%d %H:%M:%S"):
    return time.mktime(time.strptime(datestr, format))
 
class poloniex:
    def __init__(self, APIKey, Secret):
        self.APIKey = APIKey
        self.Secret = Secret
 
    def post_process(self, before):
        after = before
 
        # Add timestamps if there isnt one but is a datetime
        if('return' in after):
            if(isinstance(after['return'], list)):
                for x in xrange(0, len(after['return'])):
                    if(isinstance(after['return'][x], dict)):
                        if('datetime' in after['return'][x] and 'timestamp' not in after['return'][x]):
                            after['return'][x]['timestamp'] = float(createTimeStamp(after['return'][x]['datetime']))
                           
        return after
 
    def api_query(self, command, req={}):
 
        if(command == "returnTicker" or command == "return24Volume"):
            ret = urlopen(Request('https://poloniex.com/public?command=' + command))
            return json.loads(ret.read().decode())
        elif(command == "returnOrderBook"):
            ret = urlopen(Request('https://poloniex.com/public?command=' + command + '¤cyPair=' + str(req['currencyPair'])))
            return json.loads(ret.read().decode())
        elif(command == "returnMarketTradeHistory"):
            ret = urlopen(Request('https://poloniex.com/public?command=' + "returnTradeHistory" + '¤cyPair=' + str(req['currencyPair'])))
            return json.loads(ret.read().decode())
        else:
            req['command'] = command
            req['nonce'] = int(time.time()*1000)
            hmac_key = self.Secret.encode()
            post_data = urlencode(req).encode()
 
            sign = hmac.new(hmac_key, post_data, hashlib.sha512).hexdigest()
            headers = {
                'Sign': sign,
                'Key': self.APIKey
            }
 
            ret = urlopen(Request('https://poloniex.com/tradingApi', post_data, headers))
            jsonRet = json.loads(ret.read().decode())
            return self.post_process(jsonRet)
 
 
    def returnTicker(self):
        return self.api_query("returnTicker")
 
    def return24Volume(self):
        return self.api_query("return24Volume")
 
    def returnOrderBook (self, currencyPair):
        return self.api_query("returnOrderBook", {'currencyPair': currencyPair})
 
    def returnMarketTradeHistory (self, currencyPair):
        return self.api_query("returnMarketTradeHistory", {'currencyPair': currencyPair})
 
 
    # Returns all of your balances.
    # Outputs:
    # {"BTC":"0.59098578","LTC":"3.31117268", ... }
    def returnBalances(self):
        return self.api_query('returnBalances')
 
    # Returns your open orders for a given market, specified by the "currencyPair" POST parameter, e.g. "BTC_XCP"
    # Inputs:
    # currencyPair  The currency pair e.g. "BTC_XCP"
    # Outputs:
    # orderNumber   The order number
    # type          sell or buy
    # rate          Price the order is selling or buying at
    # Amount        Quantity of order
    # total         Total value of order (price * quantity)
    def returnOpenOrders(self,currencyPair):
        return self.api_query('returnOpenOrders',{"currencyPair":currencyPair})
 
 
    # Returns your trade history for a given market, specified by the "currencyPair" POST parameter
    # Inputs:
    # currencyPair  The currency pair e.g. "BTC_XCP"
    # Outputs:
    # date          Date in the form: "2014-02-19 03:44:59"
    # rate          Price the order is selling or buying at
    # amount        Quantity of order
    # total         Total value of order (price * quantity)
    # type          sell or buy
    def returnTradeHistory(self,currencyPair):
        return self.api_query('returnTradeHistory',{"currencyPair":currencyPair})
 
    # Places a buy order in a given market. Required POST parameters are "currencyPair", "rate", and "amount". If successful, the method will return the order number.
    # Inputs:
    # currencyPair  The curreny pair
    # rate          price the order is buying at
    # amount        Amount of coins to buy
    # Outputs:
    # orderNumber   The order number
    def buy(self,currencyPair,rate,amount):
        return self.api_query('buy',{"currencyPair":currencyPair,"rate":rate,"amount":amount})
 
    # Places a sell order in a given market. Required POST parameters are "currencyPair", "rate", and "amount". If successful, the method will return the order number.
    # Inputs:
    # currencyPair  The curreny pair
    # rate          price the order is selling at
    # amount        Amount of coins to sell
    # Outputs:
    # orderNumber   The order number
    def sell(self,currencyPair,rate,amount):
        return self.api_query('sell',{"currencyPair":currencyPair,"rate":rate,"amount":amount})
 
    # Cancels an order you have placed in a given market. Required POST parameters are "currencyPair" and "orderNumber".
    # Inputs:
    # currencyPair  The curreny pair
    # orderNumber   The order number to cancel
    # Outputs:
    # succes        1 or 0
    def cancel(self,currencyPair,orderNumber):
        return self.api_query('cancelOrder',{"currencyPair":currencyPair,"orderNumber":orderNumber})
 
    # Cancels an order and places a new one of the same type in a single atomic transaction, meaning either both operations will succeed or both will fail.
    # Inputs:
    # currencyPair  The curreny pair
    # orderNumber   The order number to cancel
    # rate          New price for the order
    # amount        New amount for the order
    def moveOrder(self,currencyPair,orderNumber,rate,amount):
        return self.api_query('moveOrder',{"currencyPair":currencyPair,"orderNumber":orderNumber,"rate":rate,"amount":amount})
 
    # Immediately places a withdrawal for a given currency, with no email confirmation. In order to use this method, the withdrawal privilege must be enabled for your API key. Required POST parameters are "currency", "amount", and "address". Sample output: {"response":"Withdrew 2398 NXT."}
    # Inputs:
    # currency      The currency to withdraw
    # amount        The amount of this coin to withdraw
    # address       The withdrawal address
    # Outputs:
    # response      Text containing message about the withdrawal
    def withdraw(self, currency, amount, address):
        return self.api_query('withdraw',{"currency":currency, "amount":amount, "address":address})

Post
Topic
Board Discutii Servicii
Re: BtcXchange.ro - Primul Bitcoin exchange Romanesc
by
valiz
on 11/03/2017, 15:15:26 UTC
http://imageshack.com/a/img923/1483/Vwqh99.png

btcXchange , vad ca ati inceput sa luati comisioane pentru tranzactii , de cand asta si de ce noi nu am fost notificati?
Am observat ca apare cand intri pe prima pagina "1% Comision de tranzactionare". Si la cum stau la lichiditate, daca vinzi 5 BTC tot la 5-6% iesi in minus, la fel ca la samsari. Doar nu se poate sa fie totul pe degeaba. Mi se pare normal sa castige si ei ceva, ca nu e asa simplu sa intretii o asemenea platforma.
Post
Topic
Board Română (Romanian)
Dubla cheltuire pentru tranzactiile neconfirmate cu comision mic
by
valiz
on 04/03/2017, 20:55:08 UTC
S-au mai schimbat vremurile si in momentul de fata pentru tranzactiile cu comision foarte mic este probabil sa nu mai fie confirmate niciodata si sa dispara. Acum este inghesuiala mai mare pe blockchain, dar si in memoria nodurilor. Daca o tranzactie are comision asa de mic incat nu este suficient sa fie confirmata nici dupa 3 zile, aceasta va disparea din memoria nodurilor, iar trimitatorul "gaseste" suma inapoi in portofel si recipientul ramane cu buza umflata.

Cred ca este posibil pentru unele tranzactii cu un comision extrem de mic sau inexistent sa dispara si mult mai devreme de 3 zile ori sa nu se propage deloc in retea.

Atentie! Daca vreti tranzactionati cu cineva si v-a trimis ceva inca neconfirmat, mai intai verificati comisionul sa fie unul rezonabil. Cum aflati daca este rezonabil?
1. Intrati pe cointape.com sau ceva similar, aflati pentru ce rata de comision timpii de confirmare sunt decenti (sub cateva ore). (in momentul de fata 240 satoshi / byte)
2. Intrati pe un blockchain explorer (blockchain.info, blocktrail.com, blockexplorer.com, bitaps.com, multe altele) si cautati unde scrie de "transaction fee" ori "miner fee" ori "fee". De obicei trebuie sa fie trecut in paranteza cati satoshi / byte este.
3. Comparati valorile. Daca valoarea de la pasul 2 este similara sau mai mare cu cea aflata la pasul 1, este ok. Daca este o valoare simtitor mai mica sau aproape 0 sau chiar 0, atunci puteti considera tranzactia invalida.

Edit: Dubla cheltuire inseamna ca pentru asemenea tranzactii trimitatorul poate sa mai trimita alta in alta parte, cu un comision mai bun, urmand sa se confirme. (cheltuieste de 2 ori acelasi lucru, unul ramane cu buza umflata, celalalt primeste).
Post
Topic
Board Discutii Servicii
Re: eroare blockchain ( nu pot sa-mi scot banii )
by
valiz
on 26/02/2017, 09:27:19 UTC
Ori e wallet-ul stricat sau cu bug-uri ori a trimis altcineva bitcoinii tai in alta parte iar wallet-ul nici nu s-a prins.

Poti incerca sa cauti daca e vreo problema cunoscuta cu wallet-ul, ori sa vezi daca se poate exporta ceva catre alt wallet mai bun si sa trimiti de acolo (daca nu au disparut cu bitcoini cu tot).
Post
Topic
Board Market
Re: Cumpara cineva jumate sau 1btc, prin Craiova?
by
valiz
on 25/02/2017, 12:41:23 UTC
Se poate inchide  Wink
Post
Topic
Board Discutii Servicii
Re: BtcXchange.ro 2.0 Relansare
by
valiz
on 24/11/2016, 06:47:56 UTC
Bravo voua !
Respect!
Momentan nu mai am bitcoini de scos, dar indata ce voi mai avea, tot btcxchange voi folosi. Sunt client vechi; inca de la infiintare si voi folosit site-ul cu aceeasi incredere si de acum inainte !
Cred ca tu esti noul proprietar Wink
Post
Topic
Board Discutii Servicii
Re: Informatii legate de transfer BTC, ETH > LEI, EURO, Banca
by
valiz
on 15/11/2016, 12:43:02 UTC
Pana la urma am ales varianta sa fac o societate comerciala noua iar la venituri pana in 100.000 euro se plateste 3% + 5% impozit pe dividente.
Ce fel de societate comerciala? Ce produce?

Cred ca ar trebui sa plateasca macar 16% impozit pe profit. Nu ma pricep la firme, dar 3% impozit suna mult prea putin ca sa fie adevarat.


3% e pentru ceva de genul microintreprindere. Chiar exista asa ceva, dar are anumite limitari.
(Daca persoana devine angajat in acea microintreprindere, cred ca va trebui in schimb sa plateasca 16% pe venit + alte taxe, dar cred ca nu asta se doreste.)
Interesanta aceasta microintreprindere. S-ar putea sa se potriveasca bine pentru ce are el. Doar sa aiba grija sa satisfaca conditiile. O conditie mi se pare mai interpretabila:
Quote
are inscrisa in obiectul de activitate productia de bunuri materiale, prestarea de servicii si/sau comertul;

Pana la urma produce criptomonede, care nici nu sunt bunuri materiale, nici nu sunt servicii si nici nu face comert.

http://www.dreptonline.ro/utile/microintreprindere.php
Post
Topic
Board Discutii Servicii
Re: Informatii legate de transfer BTC, ETH > LEI, EURO, Banca
by
valiz
on 15/11/2016, 09:34:57 UTC
Pana la urma am ales varianta sa fac o societate comerciala noua iar la venituri pana in 100.000 euro se plateste 3% + 5% impozit pe dividente.
Ce fel de societate comerciala? Ce produce?

Cred ca ar trebui sa plateasca macar 16% impozit pe profit. Nu ma pricep la firme, dar 3% impozit suna mult prea putin ca sa fie adevarat.
Post
Topic
Board Discutii Servicii
Re: Cum completati impozitele de la Bitstamp ?
by
valiz
on 15/11/2016, 09:29:28 UTC
Poate cel mai bine completezi ca s-a realizat venitul in Romania si cauti sa platesti chestia cu impozit pe venit 16% si daca gasesti sa bifezi cu "alte venituri" sau ceva similar. Tu nu muncesti pentru Bitstamp si nu ei te platesc. Poate ii vine vreunuia vreo idee sa sune la Bitstamp sa intrebe daca tu lucrezi acolo iar apoi sa zica ca "gata, l-am prins".

Cred ca e de 100 de ori mai probabil sa vina peste tine sa te ia cu evaziuni si spalari daca te apuci sa le declari chestiile astea. O sa te intrebe ca unde e contractul si cum dovedesti sumele primite.

Mai bine astepti o lege specifica care sa reglementeze ce si cum.
Post
Topic
Board Discutii Servicii
Re: Informatii legate de transfer BTC, ETH > LEI, EURO, Banca
by
valiz
on 10/11/2016, 08:50:33 UTC
Teoretic miscarile omului pe conturi sunt informatii confidentiale pe care cei de la stat nu au voie sa le acceseze, cu exceptia urmaritilor penal. Bancile nu se sesizeaza la sume mici. La sume mai mari, bancii ii trebuie justificare cu documente de unde provin banii.

Daca iti e frica te duci la traderi. De ei nu stiu de ce iti e frica, nu e ca si cum apar dupa un colt intunecat cu o gluga neagra in cap si iti iau fisele si fug in alt colt intunecat.
Post
Topic
Board Discutii Servicii
Re: Alternativa btcxchange.ro
by
valiz
on 10/11/2016, 08:41:33 UTC
Imi cer scuze, ignorati ce am zis, sunt un "concuret". Pana nu vin cu dovezi fac "pssssss".
Post
Topic
Board Discutii Servicii
Re: Alternativa btcxchange.ro
by
valiz
on 10/11/2016, 08:38:52 UTC
Nici nu stie sa scrie si pretinde ca e companie serioasa. Sunt un "hater" si fac "reklama". Ma indoiesc ca stie cum sa semneze actele de infiintare de firma.
Post
Topic
Board Discutii Servicii
Re: cum se cumpara btc in it
by
valiz
on 11/10/2016, 09:43:05 UTC
Am un prieten in italia care doreste sa cumpere btc cu bani cash si constant.
A incercat pe localbitcoin si nu prea a avut succes zice ceva ca merge greu / teapa etc..
intrebarea mea este.. stiti o metoda mai buna? ceva exchange / transfer bancar pe un site bun?

PS: prin atm btc nu merge ca in italia nu sunt prea multe.
Pai daca vrea cu bani cash atunci ce sa caute la exchange-uri / transfer bancar?

Doar pe localbitcoins sunt cu cash.
Post
Topic
Board Service Announcements
Re: BITGILD.com - Bitcoin to Gold || LIVE CHARTS - BITCOIN TO GOLD ||
by
valiz
on 05/10/2016, 08:33:19 UTC
The website is down. Does anyone know any info?

Update: Website back online but I'm not sure if they scammed me or not.

Update: They also answered email. Probably everything is fine.
Post
Topic
Board Economics
Re: Martin Armstrong Discussion
by
valiz
on 16/06/2016, 06:39:45 UTC
But something happened in 2015.75. You would better be prepared.
Post
Topic
Board Bitcoin Discussion
Re: ToominCoin aka "Bitcoin_Classic" #R3KT
by
valiz
on 26/05/2016, 05:42:01 UTC
some of you XT/Classic supporters have become desparate in your attempts to keep the blocksize issue alive

While I am running BU, not XT nor Classic, I would like to point out that it is you who appears desperate, JJG. We are not desperate. For as long as Classic holds the market share that it does, Core cannot amass the 95% required for activation.

Can you imagine the crow eating required to reduce the activation threshold?

I mean, not like it can't be done. But such shame... such shame...

No, we're not desperate. We're quietly working toward the goal of large block adoption. Until the reality is in the past, it is merely an open question.

Cheers!
Market share?  Cheesy Cheesy

By running nodes and mining, even if you are BU/Classic shills, you are helping bitcoin. I am happy that you are trying to prevent changes to the protocol. No hard forks gives stability and resiliency. Thank you!

You are desperate because you keep on shouting your nonsense on this sensorshipped forum. You are not "quietly working"  Cheesy  Cheesy
Post
Topic
Board Economics
Re: Martin Armstrong Discussion
by
valiz
on 26/05/2016, 05:31:12 UTC
What happened in 2015.75? We're still around.
Post
Topic
Board Bitcoin Discussion
Re: ToominCoin aka "Bitcoin_Classic" #R3KT
by
valiz
on 19/05/2016, 08:36:36 UTC
Quote
The fastest and cheapest transaction fee is currently 60 satoshis/byte, shown in green at the top.
For the median transaction size of 255 bytes, this results in a fee of 15,300 satoshis (0.06$).
https://bitcoinfees.21.co
Post
Topic
Board Offtopic
Re: Paste Fericit 2016!
by
valiz
on 01/05/2016, 08:27:59 UTC
Adevarat a inviat!
Post
Topic
Board Română (Romanian)
Re: ANAF face razie pe site-urile de anunturi
by
valiz
on 20/04/2016, 08:16:15 UTC
Parca pe Openbazaar sistemul integreaza direct plata cu BTC . Legile romanesti definesc vreo taxa daca primesti BTC?