Skip to content

Commit e7f373a

Browse files
Merge pull request #52 from akgnah/master
add binance style
2 parents 4b4f793 + c312c59 commit e7f373a

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/mplfinance/_styledata/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from mplfinance._styledata import brasil
1414
from mplfinance._styledata import yahoo
1515
from mplfinance._styledata import checkers
16+
from mplfinance._styledata import binance
1617

1718
_style_names = [n for n in dir() if not n.startswith('_')]
1819

src/mplfinance/_styledata/binance.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
style = dict(style_name = 'binance',
2+
base_mpl_style= 'seaborn-darkgrid',
3+
marketcolors = {'candle' : {'up':'#70a800', 'down':'#ea0070'},
4+
'edge' : {'up':'#70a800', 'down':'#ea0070'},
5+
'wick' : {'up':'#70a800', 'down':'#ea0070'},
6+
'ohlc' : {'up':'#70a800', 'down':'#ea0070'},
7+
'volume' : {'up':'#70a800', 'down':'#ea0070'},
8+
'vcedge' : {'up':'#70a800', 'down':'#ea0070'},
9+
'vcdopcod': False,
10+
'alpha' : 0.9,
11+
},
12+
mavcolors = ['#ffc201','#ff10ff','#cd0468','#1f77b4',
13+
'#ff7f0e','#2ca02c','#40e0d0'],
14+
y_on_right = False,
15+
gridcolor = '#d0d0d0',
16+
gridstyle = '--',
17+
facecolor = '#ffffff',
18+
rc = [ ('axes.edgecolor' , '#e6e6e6' ),
19+
('axes.linewidth' , 1.5 ),
20+
('axes.labelsize' , 'medium' ),
21+
('axes.labelweight', 'semibold'),
22+
('lines.linewidth' , 2.0 ),
23+
('font.weight' , 'medium' ),
24+
('font.size' , 12.0 ),
25+
],
26+
base_mpf_style= 'binance'
27+
)

0 commit comments

Comments
 (0)