我正在尝试使用github中的这个。
启动此操作的前三个命令是:
pip install bitfinex
bitfinex-poll-orderbook
pip install -r ./requirements.txt
前两个运行得非常好,我可以看到比特币交易交易所Bitfinex的订单簿。当我放入第三行时,我得到以下错误
Could not open requirements file: [Errno 2] No such file or directory: './requirements.txt'
我能做些什么来解决这个问题呢?
例如,假设我们在以下内容中提供内容:
{
"title" : "Bitcoin drops 20% after $70M worth of bitcoin was stolen from Bitfinex exchange"
"body" : "Bitfinex, one of the most popular cryptocurrency exchanges online, has suffered a major hack. The company has posted a note on its website de
我正在搜索所有的..csv,它位于一个带有glob的子文件夹中,如下所示:
def scan_for_files(path):
file_list = []
for path, dirs, files in os.walk(path):
for d in dirs:
for f in glob.iglob(os.path.join(path, d, '*.csv')):
file_list.append(f)
return file_list
如果我打电话:
path = r'
我正在尝试对JSON对象中的一个数字(股票报价器的价格)进行数学运算。
我希望它是一个名为'btcusd_price‘的变量,然后我可以用它来进行算术运算。
如何获得一个可以使用的变量?
var Bitfinex = require('bitfinex');
var bitfinex = new Bitfinex('your_key', 'your_secret');
var btcusd_price;
btcusd_price = bitfinex.ticker("btcusd", function(err, d
我花了几个小时试图找出为什么变量dataset_path (一个全局变量)总是未定义的原因。
var dataset_path ;
function myFunction() {
offline_data_mainlooper_bitfinex();
print_bilan();
}
function offline_data_mainlooper_bitfinex(){
var hours_step_size = 1*2;
var daily_step_size = 24*2,
// dataset_path = './quote/bitfinex/
我正在试验bitfinex API。
我用PhP编程,所有的文档都是JS或Ruby (我真的需要学习更多的Ruby)。
我可以提取用户信息,但是我无法提取订单簿。
代码:
<?php
function bitfinex_query($path, array $req = Array())
{
global $config;
// API settings, add your Key and Secret at here
$key = "xxxxxxxxx";
$secret = "xxxxxxx
我正在使用Cryptowatch下载比特币价格数据。下载价格数据效果很好,但我只需要一个月前的价格数据,所以从2019年10月29日到2019年11月28日的数据。我读了几个类似问题的答案,但它似乎不适用于我的代码,因为我在过滤后得到的输出与不过滤后的输出相同。
下面是我的代码:
#define 1day period
periods = '86400'
#get price data from cryptowatchAPI
resp = requests.get('https://api.cryptowat.ch/markets/bitfinex/btcusd/o
问题:当Bitfinex websocket连接建立时应用程序出现错误:
2018-02-07T18:51:52+0200 connecting once using transport type "websocket" over endpoint "tcp"
2018-02-07T18:51:52+0200 Starting factory <autobahn.twisted.websocket.WampWebSocketClientFactory object at 0x106708550>
2018-02-07T18:51:52+0200 fa
是否有任何最新的方式来转换链接内的文本?我从API中得到了这样的文本:
var someText: String = "with banks (for example to the sometimes controversial but leading exchange <a href="https://www.coingecko.com/en/exchanges/bitfinex">Bitfinex</a>)."
在上面的示例中,我如何将内部的链接转换为具有正确名称的可点击链接: Bitfinex?
文本可以包含多个链接。SwiftUI