bb_getTickersList RPC 方法 - Blockbook
Please note that this RPC method requires the Litecoin Blockbook enabled on your Quicknode endpoint.
参数
对象
对象
必填
正在加载...
时间戳
整数
必填
正在加载...
token
字符串
正在加载...
退货
结果
对象
正在加载...
ts
整数
正在加载...
可用货币
数组
正在加载...
请求
1curl -X POST "https://docs-demo.ltc-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "bb_getTickersList",6"params": [7{8"时间戳": 15743466159}10],11"id": 112}'
1curl -X POST "https://docs-demo.ltc-mainnet.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "bb_getTickersList",6"params": [7{8"时间戳": 15743466159}10],11"id": 112}'
1const body = {2jsonrpc: '2.0',3方法: 'bb_getTickersList',4params: [{"timestamp":1574346615}],5id: 16}78async 函数 main() {9const response = await fetch('https://docs-demo.ltc-mainnet.quiknode.pro/', {10方法: 'POST',11headers: {'Content-Type': 'application/json'},12正文: JSON.stringify(body)13})14const 数据 = await 响应.json()15控制台.日志(数据)16}1718主()
1const body = {2jsonrpc: '2.0',3方法: 'bb_getTickersList',4params: [{"timestamp":1574346615}],5id: 16}78async 函数 main() {9const response = await fetch('https://docs-demo.ltc-mainnet.quiknode.pro/', {10方法: 'POST',11headers: {'Content-Type': 'application/json'},12正文: JSON.stringify(body)13})14const 数据 = await 响应.json()15控制台.日志(数据)16}1718主()
1导入 请求2导入 json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7"jsonrpc": "2.0",8“方法”: "bb_getTickersList",9“params”: [10{11“时间戳”: 157434661512}13],14"id": 115})16标题 = {17“Content-Type”: 'application/json'18}1920回复 = 请求.请求("POST", url, headers=headers, 数据=有效载荷)2122打印(响应.text)
1导入 请求2导入 json34url = "https://docs-demo.ltc-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7"jsonrpc": "2.0",8“方法”: "bb_getTickersList",9“params”: [10{11“时间戳”: 157434661512}13],14"id": 115})16标题 = {17“Content-Type”: 'application/json'18}1920回复 = 请求.请求("POST", url, headers=headers, 数据=有效载荷)2122打印(响应.text)
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.ltc-mainnet.quiknode.pro/")67有效载荷 = {8jsonrpc: "2.0",9id: 1,10方法: "bb_getTickersList",11params: [{"timestamp":1574346615}]12}1314请求 = Net::HTTP::POST.new(URI)15请求["Content-Type"] = "application/json"16请求.请求正文 = JSON.生成(有效载荷)1718回复 = 净::HTTP.开始(uri.主机, uri.端口, use_ssl: true) 执行 |http|19http.请求(请求)20结束2122返回响应。正文
1require "uri"2require "json"3require "net/http"45uri = URI("https://docs-demo.ltc-mainnet.quiknode.pro/")67有效载荷 = {8jsonrpc: "2.0",9id: 1,10方法: "bb_getTickersList",11params: [{"timestamp":1574346615}]12}1314请求 = Net::HTTP::POST.new(URI)15请求["Content-Type"] = "application/json"16请求.请求正文 = JSON.生成(有效载荷)1718回复 = 净::HTTP.开始(uri.主机, uri.端口, use_ssl: true) 执行 |http|19http.请求(请求)20结束2122返回响应。正文