Bitcoin Forum
August 28, 2024, 08:33:39 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 [185] 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 »
3681  Economy / Exchanges / Re: Need help with Poloniex API (buy/sell command errors) on: July 16, 2017, 08:36:23 AM
1) Your function call poloniex("buy","USDT_ZEC",100,0.01) includes 4 arguments, your function poloniex(command,parameter,subparam) only accepts 3.

2) Your function poloniex doesn't actually do anything with the arguments you receive. You're only sending the command parameter (and the nonce), no currency pair, rate or total. You need to add those to the payload object.

I tried to add those to the payload, but it even cannot run. Can you help me to get this run? I will be very happy to send you money just to say thank. (If you offer a service to do that, pls give me the price Smiley ).

Try the following (code changes in green):

Quote
// work in progress

// you need a poloniex API key and secret with trading option enabled
// you can test it with:
// = poloniex ("returnBalances","BTC")
// or
// = poloniex ("returnBalances")


function poloniex(command,options) {
     
  // I assume that all the keys are in the "keys" spreadsheet. The key is in cell A1 and the secret in cell A2
     
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("keys");
 
  var key = sheet.getRange("A1").getValue();
   
  var secret = sheet.getRange("A2").getValue();

  var nonce = 1495932972127042 + new Date().getTime();
     
  var payload = options || {};
  payload.nonce = nonce;
  payload.command = command;

 
 
  var payloadEncoded = Object.keys(payload).map(function(param) {
    return encodeURIComponent(param) + '=' + encodeURIComponent(payload[param]);
  }).join('&');
   
  var uri = "https://poloniex.com/tradingApi";

  var signature = Utilities.computeHmacSignature(Utilities.MacAlgorithm.HMAC_SHA_512, payloadEncoded, secret);
   
  var stringSignature = "";
 
  for (i = 0; i < signature.length; i++) {
    var byte = signature;
    if (byte < 0)
      byte += 256;
    var byteStr = byte.toString(16);
    if (byteStr.length == 1) byteStr = '0'+byteStr;
    stringSignature += byteStr;
   }
   
  var headers = {
    "key": key,
    "sign": stringSignature
  }
 
  var params = {
    "method": "post",
    "headers": headers,
    "payload": payloadEncoded
  }
 
  var response = UrlFetchApp.fetch(uri, params);
 
  var dataAll = JSON.parse(response.getContentText());
 
  //Edited
  return JSON.stringify(dataAll) }
  //end edited

}

Note that you now have to call buy, sell, differently.

eg. you should now be able to call buy like this:

Code:
poloniex("buy", {
  currencyPair: "USDT_ZEC",
  amount: 100,
  rate: 0.01
});

The parameter names within the object {} correspond directly to the expected poloniex API POST parameters.

I haven't actually run it, but send me a PM if it works and you feel like tipping me.
3682  Economy / Services / Re: [OPEN] ChipMixer Signature Campaign | Accepting Sr. Member+ on: July 16, 2017, 07:34:43 AM
Username: HeRetiK
Post Count: 525
BTC Address: 14wcruSDsiwSyHSRoC4cAb4UqTAJdGSJ5V
3683  Economy / Economics / Re: When will more retailers accept Bitcoin on: July 15, 2017, 10:40:52 AM
Exactly, Bitcoin need fix issue in Blockchain about time confirm transaction if want become to digital cash for purcharse everywhere. Not only still confirm slow, use Bitcoin for purcharse at now with small amount very difficult, sometime the fees can high than the price to buy one thing.

The fee market is problematic, but the 10 minute block time is a non-issue. If the buyer paid a sufficient miner fee, in 99% of the cases it will be sufficient to just wait for the transaction to show up on the network, no need to wait for the first confirmation. For larger amounts it would still be recommendable to wait at least for the first confirmation, but for everyday grocery shopping etc. this would not be necessary.
3684  Local / Deutsch (German) / Re: Das Finanzamt lässt grüßen on: July 15, 2017, 10:30:31 AM
Ist dann beim Mining bereits der Gegenwert vom Bitcoin steuerpflichtig oder erst, wenn man ihn verkauft? Gleiche Frage auch für Signaturkampagnen.

Meines Wissens ist jeweils der Gegenwert zum Zeitpunkt der Zahlung steuerpflichtig, ähnlich wie wenn du in USD oder JPY bezahlt werden würdest. Setzt natürlich voraus dass du genug eingenommen hast um steuerpflichtig zu werden. Kann ich jetzt allerdings nur aus Österreich-Perspektive sagen, in Deutschland wirds aber wahrscheinlich nicht viel anders sein.
3685  Economy / Economics / Re: Bitcoin vs Taxes on: July 15, 2017, 08:34:51 AM
I've heared that in some countries people have to pay the income tax after buying fiat for their bitcoins. Anyone faced such problem? If yes then how you deal with it in your country?
At one point of view  bitcoin is an instrument for investment so ppl buy it willing to get income in their currency.
At the other point it is a currency and it might be used with a purpose of saving. In this case the tax would be stupid.

Luckily no. In Austria and Germany there's the following approach on Bitcoin's currency / commodity dichotomy: You only have to pay income taxes on Bitcoin if you get paid with it (ie. Bitcoin being used as a currency to pay for your goods and services), make profit as a day trader or sell it as a product (ie. you're a company / broker offering Bitcoins). If used as a commodity / store of value, there's a minimum holding time of one year after which you can sell Bitcoin without any taxations on the profits (akin to gold).
3686  Economy / Speculation / Re: Btc next support @1,800 $ ? on: July 15, 2017, 08:10:59 AM
I don't think we've reached the bottom yet, but USD 1800,- sounds about right. Should the 1800 be broken I guess the next strong support will be around USD 1300,- aka slightly above the 2013 ATH. I don't think we'll ever see USD 600 - 900,- again. If we do, that will mean that we're in a lot of trouble.

It might be a good sign because they tried to accumulate more bitcoin for 1 august,you can see it in every altcoin exchanger every altcoin goes down while bitcoin goes down too.doesnt that mean they're trying to accumulate more coin ?

It could also mean that they are jumping the ship with BTC being the only way to get back into fiat.
3687  Local / Presse / Re: Presseberichte / Bedeutsame Erwähnungen on: July 14, 2017, 02:43:46 PM
Warum Bitcoin-Anleger die Flucht ergreifen

http://www.n-tv.de/19932958

negative Schlagzeile mit informativem Artikel, der unter anderem Segwit, Bitcoin Unlimited und Segwit2x anreißt. Anders als der Titel vermutet geht es nicht nur um Negativschlagzeilen, ein Absatz ist z. B. mit "Eine Krypto-Blase? Mitnichten." betitelt.

"Auch die Investmentbanker von Goldman Sachs wittern Ungemach. Sie prognostizieren einen Kurssturz auf 1857 Dollar."

Hätte nie gedacht dass ich jemals diese Zeilen über Bitcoin lesen würde Grin

Haha, über den Satz bin ich auch gestolpert. Echt mega.
Was ich auch bemerkenswert finde ist, dass Goldman Sachs so exakte Prognosen machen kann  Grin

Sind ja auch nicht umsonst professionelle Banker!
3688  Economy / Economics / Re: Venture or seed capital methodology versus decentralized thinking? on: July 14, 2017, 02:10:29 PM
Yes, and it is a growing shadow. If more ICOs are scams etc. there more this industry will be banned or centralized.
That is why I proposed "light" regulations and partial centralization which would be something like a bridge between the two worlds.

But who would regulate it? I honestly can't think of a single entity or person that would be universally trusted within the crypto community. Even something like a rating agency for ICOs would be difficult, because conflict of interest and shilling is always just around the corner - real and imagined.
3689  Economy / Exchanges / Re: Need help with Poloniex API (buy/sell command errors) on: July 14, 2017, 01:54:33 PM
1) Your function call poloniex("buy","USDT_ZEC",100,0.01) includes 4 arguments, your function poloniex(command,parameter,subparam) only accepts 3.

2) Your function poloniex doesn't actually do anything with the arguments you receive. You're only sending the command parameter (and the nonce), no currency pair, rate or total. You need to add those to the payload object.
3690  Economy / Economics / Re: Venture or seed capital methodology versus decentralized thinking? on: July 14, 2017, 01:41:30 PM
As much as I love the decentralization and democratization of the investment market, I feel like under current valuations the risks of ICOs highly overshadow the possible rewards. While VCs are also high risk / high reward endeavours, they put a lot of expertise and vetting efforts into selecting possible candidates. They make sure that legal safeguards are in place. It seems like most ICO investments utterly lack any of these. People don't do their due diligence. And that is something that unfortunately neither decentralization nor smart contracts can fix.
3691  Alternate cryptocurrencies / Altcoin Discussion / Re: Adult ICO on: July 14, 2017, 12:47:44 PM
What do you think an adult ICO would be about?

-) Existential dread and the knowledge that you'll never live up to your own expectations due to the unrealistic ideals society has fed your head with for the last few decades.

-) VR Porn.
3692  Bitcoin / Bitcoin Discussion / Re: Why is bitcoin the most popular cryptocurrency? on: July 14, 2017, 09:32:05 AM
I believe that they're popular mainly because well it was the first of all cryptocurrencies to be made. Honestly most of the other coins are scams and greedy ways that the developers make money. The only other coin I can think of that isn't a scam are dogecoins! What do you think?

Hahaha oh doge... one just can't stay mad at this coin. One of the best alts to ever happen to crypto. Watching this community blossom in a sea of greed and self-importance was a joy back in the day <3
3693  Local / Presse / Re: Presseberichte / Bedeutsame Erwähnungen on: July 14, 2017, 08:05:32 AM
Warum Bitcoin-Anleger die Flucht ergreifen

http://www.n-tv.de/19932958

negative Schlagzeile mit informativem Artikel, der unter anderem Segwit, Bitcoin Unlimited und Segwit2x anreißt. Anders als der Titel vermutet geht es nicht nur um Negativschlagzeilen, ein Absatz ist z. B. mit "Eine Krypto-Blase? Mitnichten." betitelt.

"Auch die Investmentbanker von Goldman Sachs wittern Ungemach. Sie prognostizieren einen Kurssturz auf 1857 Dollar."

Hätte nie gedacht dass ich jemals diese Zeilen über Bitcoin lesen würde Grin
3694  Bitcoin / Development & Technical Discussion / Re: Are we over complicating Bitcoin? on: July 14, 2017, 07:55:59 AM
I don't think we're overcomplicating Bitcoin. You don't need to know a whole lot about hard forks and UASF to continue using it as a regular user - as a regular user all you need to know is that there are certain timeframes where it may be wise to avoid making transactions. The details behind it don't really matter. You can get involved, but you don't have to. However that you can get involved is one of the greatest privileges of crypto. Getting involved in traditional banking is a tad bit harder.

Bitcoin was not made to scale as easy as newer blockchains are, mainly because newer applications knew the problems they had to overcome by looking at Bitcoins mistakes.

I personally am not fully convinved of the scalability of newer blockchains yet. Most of them have to reach Bitcoin level transactions yet, and those who have, even if just for a short time, didn't scale so well either. (I'm looking at you, Ethereum)

3695  Bitcoin / Development & Technical Discussion / Re: How fragile is the pot we're putting our money in? on: July 14, 2017, 07:36:45 AM
I agree with a few other members here. We are past the "let's fight it" era and have entered the "we must create our own to compete" era.

In my eyes, the tech behind Bitcoin is not great compared to other newer currencies, but it has the reputation and dominance. And to me, that's enough to keep Bitcoin at the top of the crypto game for years (or decades) to come.

Exactly. Ultimately it's about how much trust you have in a cryptocurrency and trust takes stability and time. Bitcoin has survived a lot of crises in recent years, most alts still have to prove that they can prevail and are not yet-another-alt. BTC dominance is kinda hard to take serious as a metric if you see Ripple in third place.
3696  Bitcoin / Bitcoin Discussion / Re: Energy provider in Austria accepts BTC as payment on: July 13, 2017, 03:54:16 PM
That's the first big bitcoins news from Austria. Congratulations! I hope that fact will support spreading of bitcoin and it's future mass adoption.

Actually few days ago it was published that a big post office chain in Austria is going to sell Bitcoins. So there was bit more then just this Cheesy

Not just "a" big post office chain in Austria. The post office chain! So that's quite something.
3697  Bitcoin / Bitcoin Discussion / Re: Chain split on: July 13, 2017, 10:38:30 AM
Can anyone give  a short answer about what the chain split is I have had a read around but still learning what everything means

I also have over £2,000 in bitcoin would like to know.

Thanks

That means that there's a chance that there will be 2 or more versions of Bitcoin in case that miners can't reach a consensus on which version of the Bitcoin protocol to use in the future.

For you right now that means: If you have your coins in cold storage or a desktop wallet, don't worry. Just sit the critical timeframes out (ie. don't do transactions), worst case you'll have Bitcoins on both (or more) sides of the chain. If you have coins on exchanges or an online wallet, it may be a good idea to withdraw your money to a local wallet, or at least do some research on how your exchange / wallet provider has planned to handle a possible chain split.

Here's a more detailed article:
https://bitcoinmagazine.com/articles/countdown-segwit-these-are-dates-keep-eye/

I hope it helps.
3698  Economy / Economics / Re: Bitcoin is money, everything else is credit. on: July 13, 2017, 06:47:02 AM
Since all fiat is a claim on something that doesn't exist, it is credit.

Fiat is not a claim on something that doesn't exist, but rather a reflection of wealth of a society. The wealthier a society (ie. factories built, products sold, services rendered) the more fiat there ought to exist to reflect this growth. Of course there's a lot that can go wrong along the way (hyperinflation, etc), but it's important to keep in mind that at its core fiat is rooted in something, ie. wealth.
3699  Economy / Trading Discussion / Re: $10 000 to invest, but at which price to buy? on: July 12, 2017, 07:36:51 PM
for that i always suggest everyone to buy in steps. you first come up with a price range that you speculate is the bottom or won't go lower than that. for example $1900 to $2100. then you start placing all your orders.
majority of them in this range. then you place some lower orders but smaller for example you place $8000 in total of 10 orders in that range then place 2-5 orders of total size $1000 in $1800 to $1900.
also you place some orders above the highest price for example at $2200 you place 2-5 orders of total size $1000.

As a variation of this, you could also go the route of dollar cost averaging and simply invest over the course of a predetermined timeframe regardless of price (say, USD 500,- each day for 20 days, or USD 1000,- each week for 10 weeks). This way you can even out large swings, without trying to guess a possible bottom. Either way I definitely wouldn't invest the lump sum of USD 10,000,- at once.
3700  Economy / Economics / Re: Let's have a serious talk about high risks. on: July 12, 2017, 06:45:00 PM
If you think the fundamentals of Bitcoins are strong enough, you won't worry about a small drop such as this. Corrections happen in every market, and with the higher volatility of Bitcoin the swings are stronger of course.

Every problem we discuss revolves around bitcoin and its potential. All the fluctuations and adjustments, they are causing losses to a lot of people, but conversely, many say it is good for the market.

It's only a loss if you sell. If someone gets spooked by Bitcoin dropping down to the price levels of 7 weeks ago, then they probably shouldn't have invested in the first place. The fundamentals haven't changed in the past few weeks, only the price has.
Pages: « 1 ... 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 [185] 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!