Skip to content

Instantly share code, notes, and snippets.

@aphi
aphi / highspy_speed_test.py
Created April 1, 2023 01:20
Highspy Pybind11 Interface Speed Comparison
"""
Outputs:
Time taken to solve: 10.0589
__getitem__ method for 134322 vars: 162.8729
Copy-first method for 134322 vars: 0.0042
"""
import highspy
@aphi
aphi / search_investing_urls.py
Last active February 19, 2022 17:51
Extract data from Investing.com for use within investpy
"""
Extract data from Investing.com for use within investpy
Output is comma-separated and can be copied directly into stocks.csv to add missing stocks
$ python search_investing_urls.py
country,name,full_name,tag,isin,id,currency,symbol
united states,Airbnb,Airbnb,airbnb-inc,US0090661010,1167744,USD,ABNB
united kingdom,Deliveroo Holdings,Deliveroo Holdings PLC,deliveroo-holdings,GB00BNC5T391,1172028,GBP,ROO
united states,Nio A ADR,Nio Inc Class A ADR,nio-inc,US62914V1061,1096032,USD,NIO
"""
### Keybase proof
I hereby claim:
* I am aphi on github.
* I am aphi (https://keybase.io/aphi) on keybase.
* I have a public key ASB0UiGiljCguTjogXtu1bLtonn-_0KGzXMa13LB_9SGugo
To claim this, I am signing this object: