比特币 coinbase_使用Coinbase API管理比特币
比特币 coinbase
One of my biggest recent regrets was not pouring money into bitcoin when Kim Dotcom said we should; this was approximately 18 months ago when the bitcoin value was $170. Today bitcoin value has topped $1000 which is why I’m kicking myself so hard. I buy my bitcoin through Coinbase, a very user friendly, reliably vendor that makes bitcoin seem less scary to anyone that doesn’t know the blockchain up and down.
我最近最大的遗憾之一是,金·科特姆(Kim Dotcom)表示我们应该向比特币投入资金时,他并没有投入太多。 这大约是18个月前,当时比特币价值为170美元。 如今,比特币的价值已突破1000美元,这就是为什么我这么努力踢自己。 我通过Coinbase购买了我的比特币, Coinbase是一个非常用户友好,可靠的供应商,对于任何不了解区块链的人来说,比特币看起来都不那么恐怖。
In the past I’ve detailed a few ways to get the bitcoin value at any given time. I wanted to write a short post bringing to light that Coinbase also has an awesome API for buying, selling, sending, and managing bitcoin via Node.js:
过去,我详细介绍了在任何给定时间获取比特币价值的几种方法。 我想写一篇简短的文章来说明Coinbase也有一个很棒的API,用于通过Node.js进行买卖,发送和管理比特币:
var Client = require('coinbase').Client;
// API capabilities for your account must be enabled
// within the Coinbase account settings
var client = new Client({
'apiKey': '#####',
'apiSecret': '#####'
});
// Get accounts and their bitcoin balance
client.getAccounts({}, (err, accounts) => {
accounts.forEach(account => {
console.log(`${account.name}: ${account.balance.amount} ${account.balance.currency}`);
// My Wallet: 12.03 BTC
});
});
// Get the current bitcoin buy price:
client.getBuyPrice({'currencyPair': 'BTC-USD'}, (err, info) => {
console.log(`Buy Price: ${info.data.amount}`);
});
// Selling bitcoin
account.sell({ amount: "1", currency: "BTC" }, (err, transaction) => {
console.log(`Transaction ID is: ${transaction.id}`);
});
// Sending bitcoin
account.requestMoney({
"to": "someuser@outthere.com",
"amount": "1.001",
"currency": "BTC",
"description": "This is payment for ...."
}, (err, transaction) => {
console.log(`Transaction ID is: ${transaction.id}`);
});
There are a lot of cryptic sites out there for bitcoin and alt-coin trading; most of them are probably legit but I guess I enjoy the piece of mind provided by a professional site with lots of awesome tools and loads of security features. The fact that Coinbase also provides an excellent API is another reason I’m sticking with them.
那里有很多用于比特币和alt-coin交易的秘密站点。 它们中的大多数可能都是合法的,但我想我很喜欢由专业站点提供的功能,其中包含许多很棒的工具和大量安全功能。 Coinbase还提供了出色的API的事实是我坚持使用它们的另一个原因。
Kim Dotcom recently said he sees bitcoin at the $2000 level by the end of 2017 and $10000 by the end of 2020. That would be … mental. Anyways, I get asked who I use quite a bit and, as you can see, I really love Coinbase. Happy mining!
Kim Dotcom最近表示,他预计到2017年底比特币将达到2000美元,到2020年底将达到10000美元 。 那将是……精神上的。 无论如何,我被问到我经常使用谁,并且如您所见,我真的很喜欢Coinbase。 采矿愉快!
翻译自: https://davidwalsh.name/coinbase
比特币 coinbase
还没有评论,来说两句吧...