Dr. Yves J. Hilpisch
The Python Quants GmbH
Trading forex/CFDs on margin carries a high level of risk and may not be suitable for all investors as you could sustain losses in excess of deposits. Leverage can work against you. Due to the certain restrictions imposed by the local law and regulation, German resident retail client(s) could sustain a total loss of deposited funds but are not subject to subsequent payment obligations beyond the deposited funds. Be aware and fully understand all risks associated with the market and trading. Prior to trading any products, carefully consider your financial situation and experience level. Any opinions, news, research, analyses, prices, or other information is provided as general market commentary, and does not constitute investment advice. FXCM & TPQ will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.
The speaker is neither an employee, agent nor representative of FXCM and is therefore acting independently. The opinions given are their own, constitute general market commentary, and do not constitute the opinion or advice of FXCM or any form of personal or investment advice. FXCM assumes no responsibility for any loss or damage, including but not limited to, any loss or gain arising out of the direct or indirect use of this or any other content. Trading forex/CFDs on margin carries a high level of risk and may not be suitable for all investors as you could sustain losses in excess of deposits.
import pandas as pd
import datetime as dt
import cufflinks as cf # Cufflinks
cf.set_config_file(offline=True) # set the plotting mode to offline
from fxcm_tick_reader import fxcm_tick_reader
print(fxcm_tick_reader.get_available_symbols())
start = dt.datetime(2018, 3, 7)
stop = dt.datetime(2018, 3, 8)
%time td = fxcm_tick_reader('EURUSD', start, stop)
type(td)
td.get_raw_data().info()
td.get_raw_data().tail(10)
%time td.get_data().info()
%time td.get_data().info()
%%time
data = td.get_data(start='2018-03-06 08:00:00', end='2018-03-06 16:00:00')
data.info()
data['Bid'].iplot()