All Projects → giuse88 → Duka

giuse88 / Duka

Licence: mit
duka - Dukascopy historical data downloader

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Duka

Stock.indicators
Stock indicator technical analysis library package for .NET. Send in historical price quotes and get back desired technical indicators. Nothing more. It can be used in any market analysis software using standard OHLCV price quotes for equities, commodities, forex, cryptocurrencies, and others. We had private trading algorithms, machine learning, and charting systems in mind when originally creating this community library. Current indicators include: Accumulation/Distribution Line (ADL), Aroon Oscillator, Arnaud Legoux Moving Average (ALMA), Average Directional Index (ADX), Average True Range (ATR), Awesome Oscillator (AO), Balance of Power (BOP), Beta Coefficient, Bollinger Bands®, Chaikin Money Flow (CMF), Chaikin Oscillator, Chandelier Exit, Choppiness Index (CHOP), Commodity Channel Index (CCI), ConnorsRSI, Correlation Coefficient, Donchian Channels, Double Exponential Moving Average (DEMA), Elder-ray Index, Exponential Moving Average (EMA), Force Index, Fractal Chaos Bands (FCB), Gator Oscillator, Heikin-Ashi, Hull Moving Average (HMA), Ichimoku Cloud, Kaufman's Adaptive Moving Average (KAMA), KDJ Index, Keltner Channels, Momentum Oscillator, Money Flow Index (MFI), MESA Adaptive Moving Averages (MAMA), Moving Average Convergence/Divergence (MACD), Moving Average Envelopes, On-balance Volume (OBV), Parabolic SAR (stop and reverse), Percentage Volume Oscillator (PVO), Pivot Points and Rolling Pivot Points, Price Channels, Price (Comparative) Relative Strength (PRS), Price Momentum Oscillator (PMO), Rate of Change (ROC), Relative Strength Index (RSI), R-Squared (Coefficient of Determination), Simple Moving Average (SMA), Slope and Linear Regression, Smoothed Moving Average (SMMA), Standard Deviation, Stoller Average Range Channel (STARC) Bands, Stochastic Oscillator, Stochastic RSI, SuperTrend, Tillson T3 Moving Average, Triple Exponential Moving Average (TEMA), Triple EMA Oscillator (TRIX), True Strength Index (TSI), Ulcer Index, Ultimate Oscillator, Volume Simple Moving Average, Volume Weighted Average Price (VWAP), Vortex Indicator (VI), Weighted Moving Average (WMA), Williams %R, Williams Alligator, Williams Fractal, and Zig Zag.
Stars: ✭ 157 (-34.85%)
Mutual labels:  forex
Useworker
⚛️ useWorker() - A React Hook for Blocking-Free Background Tasks
Stars: ✭ 2,233 (+826.56%)
Mutual labels:  thread
Gear Lib
Gear-Lib, C library for IOT Embedded Multimedia and Network
Stars: ✭ 2,381 (+887.97%)
Mutual labels:  thread
Lightio
LightIO is a userland implemented green thread library for ruby
Stars: ✭ 165 (-31.54%)
Mutual labels:  thread
Sobjectizer
An implementation of Actor, Publish-Subscribe, and CSP models in one rather small C++ framework. With performance, quality, and stability proved by years in the production.
Stars: ✭ 172 (-28.63%)
Mutual labels:  thread
Q
A platform-independent promise library for C++, implementing asynchronous continuations.
Stars: ✭ 179 (-25.73%)
Mutual labels:  thread
Forex Dqn
Simple version of auto forex trader build upon the concept of DQN
Stars: ✭ 158 (-34.44%)
Mutual labels:  forex
Jiji2
Forex algorithmic trading framework using OANDA REST API.
Stars: ✭ 211 (-12.45%)
Mutual labels:  forex
Java Concurrency Examples
Java Concurrency/Multithreading Tutorial with Examples for Dummies
Stars: ✭ 173 (-28.22%)
Mutual labels:  thread
Adi
ADI(Android Debug Intensive) 是通过 JVMTI 实现的 Android 应用开发调试的增强工具集,目前主要提供性能相关的监控能力。
Stars: ✭ 194 (-19.5%)
Mutual labels:  thread
Microjob
A tiny wrapper for turning Node.js worker threads into easy-to-use routines for heavy CPU loads.
Stars: ✭ 1,985 (+723.65%)
Mutual labels:  thread
Nevercrash
🌍 全局捕获Crash。信NeverCrash,永不Crash。
Stars: ✭ 170 (-29.46%)
Mutual labels:  thread
React Native Multithreading
🧵 Fast and easy multithreading for React Native using JSI
Stars: ✭ 164 (-31.95%)
Mutual labels:  thread
Java Concurrent Programming
📓 《实战Java 高并发程序设计》笔记和源码整理
Stars: ✭ 162 (-32.78%)
Mutual labels:  thread
Preact Worker Demo
Demo of preact rendering an entire app in a Web Worker.
Stars: ✭ 204 (-15.35%)
Mutual labels:  thread
Sc
Common libraries and data structures for C.
Stars: ✭ 161 (-33.2%)
Mutual labels:  thread
Libchef
🍀 c++ standalone header-only basic library. || c++头文件实现无第三方依赖基础库
Stars: ✭ 178 (-26.14%)
Mutual labels:  thread
Wasm Worker
Move a WebAssembly module into its own thread
Stars: ✭ 215 (-10.79%)
Mutual labels:  thread
Refire Forum
Serverless discussion forum built with React, Redux and Firebase
Stars: ✭ 206 (-14.52%)
Mutual labels:  thread
Trading Server
A multi-asset, multi-strategy, event-driven trade execution and management platform for running many algorithms/bots at many venues simultaneously with unified risk management and reporting. Uses MongoDB for storage and Telegram for user notifications/trade consent.
Stars: ✭ 191 (-20.75%)
Mutual labels:  forex

duka - Dukascopy data downloader Build Status

Finding good Forex data is difficult or expensive. Dukascopy has made available an excellent web tool to download tick data for a large a variety of Forex, CFD and commodities. This is awesome and extremely useful for people, like me, trying to study the Forex market. However, it takes a lot of time to download a large data set from the website because you can download only one day per time. In order to solve this issue, I created duka.

duka is a small terminal application that can be used to download ticks for a given date range from the Dukascopy historical data feed for one or more symbols. duka takes advantage of python threads and coroutine in order to speed up the download. It takes roughly 10m to download tick data for one year for a given instrument. No bad :)

Key features :

  • Ticks data with volumes
  • Candle formatting with different time-frames ( from 1 minute to 1 day )
  • CSV output
  • multi-thread support
  • Large variety of symbols

This is what duka looks like:

![duka](.img/Screen Shot 2016-04-10 at 20.15.51.png)

As you can see, duka estimates the time left until the download is completed. This is extremely useful when downloading a large data set.

I hope you enjoy it!!

Installation

duka requires python 3.5 and request 2.0.1. It can be installed using pip as follows:

pip install duka

Usage

 usage: duka [options]

 positional arguments:
    SYMBOLS               symbol list using format EURUSD EURGBP 

 optional arguments:
     -h           show help message and exit 
     -v           show program's version number and exit
     -d DAY       specific day format YYYY-MM-DD (default today)
     -s STARTDATE start date format YYYY-MM-DD (default today)
     -e ENDDATE   end date format YYYY-MM-DD (default today)
     -c CANDLE    use candles instead of ticks. Accepted values M1 M2 M5 M10 M15 M30 H1 H4 D1
     -f FOLDER    the dowloaded data will be saved in FOLDER (default '.')
     -t THREAD    number of threads (default 10)
     --header     include CSV header (default false)

Examples

  • Help

    duka -h
    
  • Download last available tick set (i.e. yesterday if not Saturday ) for EURUSD and GBPUSD

    duka EURUSD GBPUSD 
    
  • Download ticks for the EURUSD for a specific day

    duka EURUSD -d 2016-02-02
    
  • Download ticks for the EURUSD between two dates. For example:

    duka EURUSD -s 2015-01-01 -e 2016-12-31 
    

    download all ticks for the 2015 year

  • We can specify only the start date. The default end date will be today. For example:

    duka EURUSD -s 2016-01-01
    

    downloads all ticks from the beginning of the year until now.

All data is saved in the current folder. You can also specify the number of threads to be used by setting the t option. I recommend not to use too many threads because you might encounter problems opening too many connection to the server.

Helping

Found a bug? Missing a feature? Open a issue and I will try to fix it as soon as possible. Pull request are also welcomed. :)

License

This software is licensed under the MIT License.

Copyright Giuseppe Pes, 2016.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].