【文件属性】:
文件名称:coinbase-pro:Coinbase Pro的Node.js库
文件大小:514KB
文件格式:ZIP
更新时间:2021-02-16 02:29:18
api crypto bitcoin coinbase exchange
coinbase-pro-node-api
Node.js库
安装
npm install coinbase-pro-node-api
用法
公共客户
import { PublicClient } from "coinbase-pro-node-api" ;
const sandbox = true ;
const client = new PublicClient ( { sandbox } ) ;
const products = await client . getProducts ( ) ;
const product_id = "ETH-BTC" ;
const product = await client . getProduct ( { product_id } ) ;
const level = 2 ;
const book = await client . ge