I hereby claim:
- I am ranaroussi on github.
- I am ranaroussi (https://keybase.io/ranaroussi) on keybase.
- I have a public key ASA6RgWZK5het4zvK722ATQfHG0lqH6iUX2IQrwVtsuZ0Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import pandas as pd | |
| from urllib.parse import urlencode | |
| class AlphaVantage(object): | |
| def __init__(self, api_key): |
| <?php | |
| /** | |
| * PHP implementation of Pyton's requests module | |
| * Copyright 2017-2018 Ran Aroussi | |
| * | |
| * Licensed under the GNU Lesser General Public License, v3.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.gnu.org/licenses/lgpl-3.0.en.html |
SHEET_NAME="Sheet1"
URL="https://data.sparkfun.com/output/VFEEYZENwLCNwE8LZjDA.csv"
function myFunction() {
ScriptApp.newTrigger("getData")
.timeBased()
.everyMinutes(1)
.create();
}| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| example of a rapid prototyping of a strategy idea using pandas | |
| (c) Ran Aroussi <http://aroussi.com> | |
| """ | |
| import matplotlib.pyplot as plt | |
| from pandas_datareader import data |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import matplotlib.pyplot as plt | |
| # future-compatibility with Panda 0.25 | |
| from pandas.plotting import register_matplotlib_converters | |
| register_matplotlib_converters() | |
| import numpy as np |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| A Generic method to save Pandas objects to file, | |
| based on file extension found in the output path. | |
| Usage: | |
| df.to_file("/path/to/file.csv") | |
| """ |
| import ezibpy | |
| import time | |
| # initialize ezIBpy | |
| ibConn = ezibpy.ezIBpy() | |
| ibConn.connect(clientId=100, host="localhost", port=4001) | |
| # create a contract | |
| contract = ibConn.createStockContract("AAPL") | |
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| import ezibpy | |
| import time | |
| # --------------------- | |
| # create a callback method to be called on every tick/bid/ask | |
| def ibCallback(caller, msg, **kwargs): | |
| if "tick" in kwargs: |