Exemple #1
0
        "sameas": "USD"
    },
}

################################################################################
## Exchanges and settings
##
## scaleVolumeBy: a multiplicative factor for the volume
## allowFailure:  bool variable that will (if not set or set to False) exit the
##                script on error
################################################################################
feedSources = {}
#feedSources["yahoo"]    = feedsources.Yahoo()
feedSources["btcavg"] = feedsources.BitcoinAverage()
#
feedSources["poloniex"] = feedsources.Poloniex(allowFailure=True)
#feedSources["ccedk"]    = feedsources.Ccedk(allowFailure=True)
#feedSources["bittrex"]  = feedsources.Bittrex(allowFailure=True)
#feedSources["yunbi"]    = feedsources.Yunbi(allowFailure=True)
#feedSources["btc38"]    = feedsources.Btc38(allowFailure=True)
#
#feedSources["btcchina"] = feedsources.BtcChina(allowFailure=True)
#feedSources["okcoin"]   = feedsources.Okcoin(allowFailure=True)
#feedSources["huobi"]    = feedsources.Huobi(allowFailure=True)
#
#feedSources["btcid"]    = feedsources.BitcoinIndonesia(allowFailure=True)
#feedSources["bter"]     = feedsources.Bter(allowFailure=True)

################################################################################
# Blame mode allows to verify old published prices
# All data requires is stored in the blame/ directoy. Filename is the head block
Exemple #2
0
    ],
    quoteNames={
        "XAU": "GOLD",
        "XAG": "SILVER",
        # "399106.SZ" : "SHENZHEN",
        # "000001.SS" : "SHANGHAI",
        # "^HSI"      : "HANGSENG",
        # "^IXIC"     : "NASDAQC",
        # "^N225"     : "NIKKEI"
    },
    bases=["USD", "EUR", "CNY", "JPY", "HKD"])
feedSources["btcavg"] = feedsources.BitcoinAverage(quotes=["BTC"],
                                                   bases=["USD", "EUR", "CNY"])

feedSources["poloniex"] = feedsources.Poloniex(allowFailure=True,
                                               quotes=["BTS"],
                                               bases=["BTC"])
feedSources["ccedk"] = feedsources.Ccedk(allowFailure=True,
                                         quotes=["BTS"],
                                         bases=["BTC", "USD", "EUR", "CNY"])
feedSources["bittrex"] = feedsources.Bittrex(allowFailure=True,
                                             quotes=["BTS"],
                                             bases=["BTC"])
feedSources["yunbi"] = feedsources.Yunbi(allowFailure=True,
                                         quotes=["BTS", "BTC"],
                                         bases=["CNY"])
feedSources["btc38"] = feedsources.Btc38(allowFailure=True,
                                         quotes=["BTS", "BTC"],
                                         bases=["BTC", "CNY"])

feedSources["bitshares"] = feedsources.Graphene(
Exemple #3
0
                                                        # "^HSI"      : "HANGSENG",
                                                        # "^IXIC"     : "NASDAQC",
                                                        # "^N225"     : "NIKKEI"
                                                        },
                                            bases=["USD", "EUR", "CNY", "JPY", "HKD"])
feedSources["google"]    = feedsources.Google(scaleVolumeBy=1e7,
                                              quotes=["TRY", "SGD", "HKD",
                                                      "NZD", "CNY", "MXN",
                                                      "CAD", "CHF", "AUD",
                                                      "GBP", "JPY", "EUR",
                                                      "USD", "KRW"],
                                              bases=["USD", "EUR", "CNY", "JPY", "HKD"])
feedSources["btcavg"]   = feedsources.BitcoinAverage(quotes=["BTC"], bases=["USD", "EUR", "CNY"])

feedSources["poloniex"] = feedsources.Poloniex(allowFailure=True, 
                                              quotes=["BTS", "GRC"],
                                              quoteNames={"GRC" : "GRIDCOIN"},
                                              bases=["BTC"])
feedSources["ccedk"]    = feedsources.Ccedk(allowFailure=True, quotes=["BTS"], bases=["BTC", "USD", "EUR", "CNY"])
feedSources["bittrex"]  = feedsources.Bittrex(allowFailure=True,
                                              quotes=["BTS", "GRC"],
                                              quoteNames={"GRC" : "GRIDCOIN"},
                                              bases=["BTC"])
feedSources["yunbi"]    = feedsources.Yunbi(allowFailure=True, quotes=["BTS", "BTC"], bases=["CNY"])
feedSources["btc38"]    = feedsources.Btc38(allowFailure=True, quotes=["BTS", "BTC"], bases=["BTC", "CNY"])

feedSources["quandl"]    = feedsources.Quandl(datasets={  # There is a limit of 20 calls per 10 minutes!
                                                  "GOLD:USD": [
                                                      # "WGC/GOLD_DAILY_USD",
                                                      "LBMA/GOLD",
                                                      "PERTH/GOLD_USD_D"
                                                      ],