This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"product_code": "BTC_JPY" | |
}, | |
{ | |
"product_code": "FX_BTC_JPY" | |
}, | |
{ | |
"product_code": "ETH_BTC" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import time | |
import hmac | |
import hashlib | |
import base64 | |
API_ENDPOINT = 'https://api.bitflyer.com' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
API_ENDPOINT = 'https://api.bitflyer.com' | |
def convetStrToJson(str): | |
return json.loads(str) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
API_ENDPOINT = 'https://api.bitflyer.com' | |
def convetStrToJson(str): | |
return json.loads(str) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
from pyalgotrade.optimizer import local | |
from accumulator import Accumulator | |
from pyalgotrade.bar import Frequency | |
from pyalgotrade.barfeed import csvfeed | |
import multiprocessing | |
multiprocessing.set_start_method('spawn', True) | |
def parameters_generator(): | |
instrument = ["BTC"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyalgotrade import strategy | |
from pyalgotrade.bar import Frequency | |
from pyalgotrade.barfeed import csvfeed | |
from pyalgotrade.stratanalyzer import returns | |
from pyalgotrade.stratanalyzer import trades | |
from pyalgotrade import plotter | |
from accumulator import Accumulator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from pyalgotrade import strategy | |
from pyalgotrade.barfeed import quandlfeed, csvfeed | |
from pyalgotrade.technical import ma | |
class Accumulator(strategy.BacktestingStrategy): | |
def __init__(self, feed, instrument, buy_offset, buy_percent): | |
super(Accumulator, self).__init__(feed, 90000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import csv | |
import pandas as pd | |
import datetime | |
# ----------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Promise Dapp</title> | |
<script src="./node_modules/web3/dist/web3.min.js"></script> | |
<!-- node_modules/web3/dist/web3.min.js --> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
networks: { | |
development: { | |
host: "127.0.0.1", // Localhost (default: none) | |
port: 8545, // Standard Ethereum port (default: none) | |
network_id: "*", // Any network (default: none) | |
}, | |
}, |