Bitcoin Forum
September 21, 2025, 11:29:26 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Local / Desenvolvimento & Discussões Técnicas / Re: [PHP] Lib usada no centralbit on: August 24, 2017, 01:40:40 AM
OK, obrigado pela ajuda, mas sou beginner, não entendo a nomenclatura de API (não sei o que é o header da chamada nem como passar o header). eu precisaria de exemplo do código. Sobre a documentação que consta no site da negociecoins, segue:

https://www.negociecoins.com.br/documentacao-tradeapi.aspx

O cabeçalho de autorização AMX é usado para proteger o acesso à nossa API de TRADE. Ele usa um token por chamada que é gerado usando o ID da API e a chave (API KEY) que foram fornecidos a você. Ele criptografa o conteúdo e usa um NONCE como segurança adicional.

Criar ordem de compra:
Formato da Requisição: POST
URL para Requisição: https://broker.negociecoins.com.br/tradeapi/v1/user/order

brokerID = Inteiro: Id único da exchange onde a ordem será criada. Usar 1 para a NegocieCoins.
userID = Inteiro: Id único do usuário.
pair = String: Define o filtro por par de moedas das ordens de negociação. Usar "BRLBTC"ou "BRLLTC".
type = String: Define o filtro por tipo de operação das ordens de negociação. Usar "buy" ou "sell".
volume = Decimal: Define a quantidade de criptmoedas a ser executada nesta ordem.
price = Decimal: Define o preço da ordem de negociação a ser executada.
2  Local / Desenvolvimento & Discussões Técnicas / Re: [PHP] Lib usada no centralbit on: August 23, 2017, 10:34:02 PM
Olá, pessoal.

eu estava atualizando meu código API para negociecoins.com.br mas precisei de suporte e eles estão demorando demais para dar suporte. As solicitações GET funcionam perfeito, mas as solicitações POST eu não sei como enviar. Tenho o seguinte código para POST (na tentativa de para criar ordem "buy"). Se alguém souber como enviar a API key e os parâmetros de POST eu agradeço.

//POST method
   $negocieCoinsApiKey = "XXX...."; //your api key
   $negocieCoinsApiUser = "YYY....";
   $negocieUrl = "https://broker.negociecoins.com.br/tradeapi/v1/user/order/";
   $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $negocieUrl);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
        curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
        curl_setopt($ch, CURLOPT_POST, 1);
   curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array(
      "brokerID" => 1,
      "userID" => $userId,
      "pair" => "BRLBTC",
      "type" => "buy",
      "volume" => 0.1,
      "price" => 13000
   )));

$jsonReturn = curl_exec($ch);
3  Economy / Exchanges / Re: Crypto-Trade – Official Announcement (10 Fiat, 335 Crypto, 5300 Pairs) on: September 13, 2016, 11:35:22 AM
I see many of the post circle around trust. And I see it is really the main point of all this. I have some words to say about that:

1. Yes, I'm a newbie, because I do not usually come here to the forum (i may have come once or twice as a visitor). I came to this specific topic exactly because I was copied by Crypto-Trade.net admin as I was one of the first that tried trading, even before the official launch. I am not a perfil just created to pretend to be a person. But, this is a question of trust. And I will not say you to believe or not. For sure, I am not offended.

2. I am enthusiastic about Bitcoin, because its trust is based on its trust. There is no external credit (unless by the trust in the market agents, trust in a spreaded power society). It does not rely on a central bank or on a pretended to be reliable regulatory system or on political connections. Bitcoin is a free trust system. That is why it was created for and it is one of its most important features (not to be controlled by a government or by a single or small group of individuals). It is power-spreaded system. And people trust it. Is it reason or justification to trust Crypto-Trade.net? Sure not! Bitcoin is one project and Crypto-Trade.net is a completelly different one. But, as we trust Bitcoin and do not trust fiat currencies, it would be non sense to expect that a system controlled by government or regulatory agencies would be more secure than the ones audited by market. Just to give an example, banks are regulated and have government allowance to their practices. Do you believe banks? If so, why did anybody go to crypto-currencies?

3. I live in a country where we see the real face of state-interference (also into monetary arrangements, as all other countries). It is very clear to me that regulatory system works not to preserve market or to protect people, but to avoid new market entrants and better and cheaper market solutions to be available to society. Regulatory agencies protect the big regulated companies from our free choice. This is for telephone companies, internet, public transportation, security, electricity, water, justice, payment systems, banking, etc. Markets, on the other hand, is also not perfect (there are scams, project failures, errors - state-regulated also do scams, errors, etc, but are protected from public). But be under market is for sure much better then to be certain to be dumped and empoverished. Markets work in principle of bad projects to fail and good projects to flourish. It will not be different for crypto-currencies exchange. But. what I want to say is "we should not claim for regulation! On the opposite! We should banish any state regulation from our lives. Let market regulates, let people get charged for their own choices".

4. Crypto-Trade.net admin: I have seen some very good recommendations/suggestions from forum readers (security, https entering page, coin volumes, overview information page, annonimous chat, info about the people behind the exchange), what would give market more info and maybe create the needed trust. i would take suggestions seriously and do the possible improvements. As I said, it is all a question of trust, and a real and professional work shows you are compromised to offer a real and reliable service. As I highlighted, it is all about trust. If you wanna stay in the market, you MUST show you are serious. You did good as far as today, but still needs improvements.

5. I did not want to create any offence, just bring the basics of Bitcoin back to our lifes. We must not forget why Satoshi created Bitcoin. It was not just to be another currency. It was the first (after more than a thousand years) state-free-currency. If it was not that, it would be just one more fiat currency as any Zimbabwe dollar.
4  Economy / Exchanges / Re: Crypto-Trade – Official Announcement on: September 01, 2016, 01:57:30 PM
I already traded there in Crypto-Trade. And everything worked fine. I asked some friends to try it and nobody reported any problem. It does not prove it is all right, but I see that regulation does not help at all (the entire financial system is heavily regulated and Bitcoin was created exactly due to lack of trust on fiduciary coins. And even the "too big to fail banks" are broken). It is really all a matter of trust. There is no other way. Why people trust Bitfinex or Bitstamp? It is just because people trust it.

But, I agree, there are a lot of scams all around. That is why I first try with small amounts if all features work. It would be a good sign (as it is nonsense to create a complex system that works just to steal some pennies). Sure, one should protect himself the much possible (I would say it is smart to just deposit in a "risky position" funds that are being actively traded and keep remaining assets under close supervision). And Bitcoin allows it, thanks Satoshi!

They are just starting and I think that they still need improvements, but till now I do not see problems (maybe interface could be better, connections to banks could be improved, but from the tests I've done, deposit and withdraw BTCs and LTCs work, trading work, and if fees are low, that could be a really good opportunity. I liked.

About the number of coins, I also do not trade most of those coins, but it is just a matter of focusing on the trades you are intersted on, let the others be.

The big problem I see in Crypto-Trade is that they still do not have volume. This is the big point I see. Well, everybody starts small. I hope they get volume and become a real and good trading option.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!