簡(jiǎn)介:Coinbase吸占,相信大家都知道癌压,世界頂級(jí)數(shù)字貨幣交易所嫡霞。Coinbase 有非常完備的 API 服務(wù)衙荐,包括允許開(kāi)發(fā)人員使用OAuth2協(xié)議允許Coinbase用戶(hù)授予第三方應(yīng)用程序?qū)ζ鋷?hù)的完全或部分訪(fǎng)問(wèn)權(quán)限捞挥,而無(wú)需共享帳戶(hù)的API密鑰或登錄憑據(jù)。本篇文章介紹開(kāi)發(fā)者如何使用?Coinbase 公共數(shù)據(jù) API 獲取可用交易對(duì)列表忧吟。
Coinbase砌函,相信大家都知道,世界頂級(jí)數(shù)字貨幣交易所瀑罗。Coinbase 有非常完備的 API 服務(wù)胸嘴,包括允許開(kāi)發(fā)人員使用OAuth2協(xié)議允許Coinbase用戶(hù)授予第三方應(yīng)用程序?qū)ζ鋷?hù)的完全或部分訪(fǎng)問(wèn)權(quán)限,而無(wú)需共享帳戶(hù)的API密鑰或登錄憑據(jù)斩祭。
Coinbase, which I believe everyone knows, is the world's top digital currency exchange.?Coinbase's API services are very comprehensive, it allows developers to use the OAuth2 protocol to allow a Coinbase user to grant a 3rd party application full or partial access to his/her account, without sharing the account’s API key or login credentials.
使用?Coinbase API劣像,可以在應(yīng)用程序中輕松集成比特幣,比特幣現(xiàn)金摧玫,litecoin 和 ETH耳奕。使用 Coinbase API 可以完成這些操作:
Coinbase API makes it easy to integrate bitcoin, bitcoin cash, litecoin and ethereum into both new and existing applications.
1.生成比特幣,比特幣現(xiàn)金诬像,litecoin和以太坊錢(qián)包和地址屋群;
2.買(mǎi)/賣(mài)和發(fā)送/接收比特幣,比特幣現(xiàn)金坏挠,litecoin和以太坊芍躏;
3.安全地存儲(chǔ)比特幣,比特幣現(xiàn)金降狠,litecoin和以太坊对竣;
4.檢索實(shí)時(shí)或歷史價(jià)格信息;
5.付款到達(dá)時(shí)收到通知榜配。
1.Generate bitcoin, bitcoin cash, litecoin and ethereum wallets and addresses
2.Buy/sell and send/receive bitcoin, bitcoin cash, litecoin and ethereum
3.Securely store bitcoin, bitcoin cash, litecoin and ethereum
4.Retrieve real-time or historical price information
5.Receive notifications when payments arrive
在本篇文章中否纬,我們將介紹?COINBASE PRO API。作為一個(gè)全功能交易 API蛋褥,COINBASE PRO API 為開(kāi)發(fā)人員提供了有效方式以構(gòu)建數(shù)字資產(chǎn)交易應(yīng)用程序临燃,并提供相關(guān)功能。您可以構(gòu)建工具以跟蹤市場(chǎng),查看交易歷史膜廊,監(jiān)控未結(jié)訂單等乏沸。
In this article, we are introducing the COINBASE PRO API.?Coinbase Pro’s fully featured trading API offers an efficient way for developers to build digital asset trading applications and to offer related functionality.?You can build tools to track the market, view your trading history, monitor open orders, and more.
Coinbase Pro API?官方文檔:https://docs.pro.coinbase.com/
Coinbase Pro API official documentation:https://docs.pro.coinbase.com/
Market Data API 是 Coinbase Pro API 中不需要身份驗(yàn)證的公共信息端口,用于檢索市場(chǎng)數(shù)據(jù)溃论。它提供市場(chǎng)數(shù)據(jù)的快照屎蜓。
The Market Data API is an unauthenticated set of endpoints for retrieving market data. These endpoints provide snapshots of market data.
獲取可用交易對(duì)列表:
Get a list of available currency pairs for trading:
https://api-public.sandbox.pro.coinbase.com/products
Node.js 代碼示例:
Code example (Node.js):
返回的 JSON 示例:
Return JSON example:
仍然做了一張 Market Data API 的思維導(dǎo)圖:
Mind map of the Market Data API:
本文為原創(chuàng)雙語(yǔ)文章痘昌,不是純翻譯文章钥勋。雙語(yǔ)呈現(xiàn)是為了更好理解。
第一次嘗試以雙語(yǔ)形式發(fā)文辆苔,不知道大家的反應(yīng)是怎樣算灸,會(huì)不會(huì)反而覺(jué)得看起來(lái)混亂。歡迎以評(píng)論方式留下你們的看法和建議驻啤。
其實(shí)自己英語(yǔ)也沒(méi)有多好菲驴,所以文章中如有錯(cuò)誤或紕漏,歡迎指正骑冗。
我們有一個(gè)區(qū)塊鏈知識(shí)星球赊瞬,做區(qū)塊鏈前沿資料的歸納整理以方便大家檢索查詢(xún)使用,也是國(guó)內(nèi)頂尖區(qū)塊鏈技術(shù)社區(qū)贼涩,歡迎感興趣的朋友加入巧涧。如果你對(duì)上面內(nèi)容有疑問(wèn),也可以加入知識(shí)星球提問(wèn)我: