This file contains 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
# Byte-compiled / optimized / DLL files | |
__pycache__/ | |
*.py[cod] | |
*$py.class | |
# C extensions | |
*.so | |
# Distribution / packaging | |
.Python |
This file contains 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 pandas as pd | |
class BB(): | |
def __init__(self, df): | |
self.data = df | |
self.periods = 30 | |
self.length = 30 | |
self.mult = 2.0 |
This file contains 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 dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import flask | |
import os | |
app = dash.Dash() | |
app.layout = html.Div('Hello World') |
This file contains 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 pathlib import Path | |
import os | |
import json | |
import pandas as pd | |
from datetime import datetime | |
BASEPATH = Path(__file__).parent | |
exchange = 'binance' | |
tradepair_state_paths = sorted(BASEPATH.glob(f'{exchange}-BTC-*-state.json'), key=os.path.getmtime, reverse=True) |
This file contains 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
## | |
# Flask Drive Example App | |
# | |
# @author Prahlad Yeri <prahladyeri@yahoo.com> | |
# @date 30-12-2016 | |
# Dependency: | |
# 1. pip install flask google-api-python-client | |
# 2. make sure you have client_id.json in this same directory. | |
import os |
This file contains 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
# percent change = new - old / old * 100 | |
dataframe['percent_change'] = ( | |
dataframe['Last'] - dataframe['PrevDay']) / dataframe['PrevDay'] * 100 |
This file contains 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 toml | |
import structlog | |
from pathlib import Path | |
class InvalidSettingError(ValueError): | |
pass | |
class ConfigurationBase: |
This file contains 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
@namespace url(http://www.w3.org/1999/xhtml); | |
html { | |
background-color: #002b36 !important; | |
color: #839496 !important; | |
font-size: 105% | |
} | |
* { /* body, div#content-body, div#body, div#content, h1 */ | |
background: transparent !important; | |
color: inherit !important; |
- Update HISTORY.rst
- Commit the changes:
git add HISTORY.rst
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
OlderNewer