From d1cc1b1cef1ed9d9ef4b63b05f2a28a9a6a09557 Mon Sep 17 00:00:00 2001 From: TerenceLau Date: Mon, 7 Jun 2021 00:00:58 +0800 Subject: [PATCH] Created Example: Market Data (markdown) --- Example:-Market-Data.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Example:-Market-Data.md diff --git a/Example:-Market-Data.md b/Example:-Market-Data.md new file mode 100644 index 0000000..2988314 --- /dev/null +++ b/Example:-Market-Data.md @@ -0,0 +1,24 @@ +1. Dukascopy + +Dukascopy Bank is a Swiss online bank which provides online and mobile trading, banking and financial services. We can get the historical data from [Dukascopy](https://www.dukascopy.com/trading-tools/widgets/quotes/historical_data_feed), here is an example: + +```python +from CEDA.Market.market import dukascopy +df = dukascopy(instrument = "btcusd", + startdate = "2020-01-01", + enddate = "2021-01-01", + pricetype = "bid", + volume = True, + flat = True) +``` + +2. Marketwatch + +[Marketwatch](https://www.marketwatch.com/) is a website that provides financial information, business news, analysis, and stock market data. Alone with The Wall Street Journal and Barron's, it is a subsidiary of Dow Jones & Company, a property of News Corp. + +```python +from CEDA.Market.market import currency_list +df = currency_list(instrument = "eurusd", + startdate = "01/01/2020", + enddate = "01/01/2021") +```