Skip to content

Create a CSV like the example #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
woehrer12 opened this issue Aug 23, 2021 · 2 comments
Open

Create a CSV like the example #2

woehrer12 opened this issue Aug 23, 2021 · 2 comments

Comments

@woehrer12
Copy link
Owner

url = "https://poloniex.com/public?command=returnChartData&currencyPair=USDT_BTC&start=" + str(now_6year) + "&end=" + str(now) + "&period=7200"
resp = requests.get(url=url)
data = resp.json()
print(data)

Create a CSV from the Request like the Example

df = pd.read_csv('./Data/USDT_BTC_Poloniex_20022015_21122020_7200.csv')

@aliimran2000
Copy link

aliimran2000 commented Aug 23, 2021

So you want to generate a CSV format file from the received JSON data?

@woehrer12
Copy link
Owner Author

Yes.
I have this CSV: "USDT_BTC_Poloniex_20022015_21122020_7200.csv"
But the datas are not current.
I like to replayce the data from the json over the CSV.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants