\
  The most prestigious law school admissions discussion board in the world.
BackRefresh Options Favorite

Jared Kushner tp - How to utilize a script to get Liqui trades?

So, I'm trying to calculate my crypto gains for 2017. For a...
180 lodge french chef
  03/18/18
try running ruby script_name.rb You’ll need to plug in...
charismatic demanding lay
  03/18/18
Like I'm so noob I don't even know how to run that. The &qu...
180 lodge french chef
  03/18/18
It will be with the terminal (mac) or command line (windows)...
charismatic demanding lay
  03/18/18
When you say dashboard, do you mean when I hit "profile...
180 lodge french chef
  03/18/18
Well there should only be a single API key to access all of ...
charismatic demanding lay
  03/18/18
Hopefully he sees this then. But I can hit "create&q...
180 lodge french chef
  03/18/18
You can make multiple keys for the same account, and refresh...
charismatic demanding lay
  03/18/18
Yeah, it doesn’t indicate a year next to the API key. I just...
180 lodge french chef
  03/18/18
So I made a call that required authentication by bringing up...
180 lodge french chef
  03/18/18


Poast new message in this thread



Reply Favorite

Date: March 18th, 2018 7:29 PM
Author: 180 lodge french chef

So, I'm trying to calculate my crypto gains for 2017. For anyone that's interested, this is the best site to use by far:

https://cointracking.info/

Basically, you have to export your trading history from various exchanges into csv files, import into this program, and it does everything for you.

The problem is that Liqui is such a fucking bitch about this stuff. It doesn't even keep a trading history beyond your last 30 transactions per pair (and a single buy or sell could be 20 transactions).

The coin tracking website says you can use an API key to import the trading history, but I was only able to import 2018. For some reason 2017 doesn't show up.

So I've been trying to figure out how to do it, and this Reddit guy was able to:

https://www.reddit.com/r/ethtrader/comments/7oldza/just_spent_about_12_hours_figuring_out_my_tax/

He basically created a custom script to dump the data, and he used that to paste into an Excel and import into a crypto tax program.

He pasted a link to his script here:

https://pastebin.com/UQGbTGat

The problem is I don't know how to utilize it. You seem like an expert programmer, and I think this is a basic question, so hopefully you can help. And hopefully this thread helps you if you didn't know how to get your trading history from Liqui. Basically, wtf do I do to get this thing to run?



(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633531)



Reply Favorite

Date: March 18th, 2018 7:34 PM
Author: charismatic demanding lay

try running

ruby script_name.rb

You’ll need to plug in your api key. I think you can get that from liqui dashboatd

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633573)



Reply Favorite

Date: March 18th, 2018 7:37 PM
Author: 180 lodge french chef

Like I'm so noob I don't even know how to run that. The "run" command from the start menu?

And regarding the api key, this is what the reddit guy says:

You’ll have to login to liqui and find out your api token by inspecting the calls in the network tab of chrome Dev tools. Paste that into the script and run. Might need to install the ruby gems first as well

https://www.reddit.com/r/ethtrader/comments/7oldza/just_spent_about_12_hours_figuring_out_my_tax/dsavqxm/

I have never used Dev tools before and went into the network tab but don't see anything labeled API.

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633586)



Reply Favorite

Date: March 18th, 2018 7:42 PM
Author: charismatic demanding lay

It will be with the terminal (mac) or command line (windows). You’ll need to navigate to where ever the file is, and rename it to something. Like liqui_script.rb.

I haven’t used the liqui API

But look at the liqui trade api section here

https://liqui.io/api

It says you should be able to get the key from the dashboard

I suggest downloading something like sublime or visual studio code to make editing the file easier

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633607)



Reply Favorite

Date: March 18th, 2018 7:50 PM
Author: 180 lodge french chef

When you say dashboard, do you mean when I hit "profile" and then "API keys?"

Because that does generate an API key. But this is what I imported into coin tracking, and it only came up with the 2018 trades. I feel like if I put that into the script, it will come up with the same result.

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633679)



Reply Favorite

Date: March 18th, 2018 7:57 PM
Author: charismatic demanding lay

Well there should only be a single API key to access all of your data regardless of the year... not sure why it’s not dumping the 2017 data. I don’t think I’ve ever used liqui for anything significant.

I think someone else was interfacing with liqui on here heavily for trading. May be able to provide more insight into the api. Maybe it was longmo?

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633728)



Reply Favorite

Date: March 18th, 2018 8:01 PM
Author: 180 lodge french chef

Hopefully he sees this then.

But I can hit "create" and generate new API keys. It's always different every time I hit create. I did write to Liqui and ask them why the API key is only taking out 2018 data and not 2017 but they are some shady Ukranian exchange so I doubt they get back any time soon.

Do you know what the Reddit guy is talking about using the dev tools to get the API key? I can't find it there.

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633746)



Reply Favorite

Date: March 18th, 2018 8:04 PM
Author: charismatic demanding lay

You can make multiple keys for the same account, and refresh or delete old keys. But they’re all used to access the same account, which should then be able to access all of your history. Like there wouldn’t be a different key for each year or w/e

The key would come up on the console after you made a call that required authentication (like checking your history).

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633758)



Reply Favorite

Date: March 18th, 2018 8:08 PM
Author: 180 lodge french chef

Yeah, it doesn’t indicate a year next to the API key. I just label it whatever and hit create. I was just saying that it generates a new key each time I do that. It also generates a “secret.”

I imported two separate API keys and secrets into the coin tracking program but each time only imported 2018 data. So I’m thinking if I paste one of those API keys into the ruby script it will only bring back 2018 data, no? I’d like to find another API key to put into the script so hopefully I get different results.



(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35633793)



Reply Favorite

Date: March 18th, 2018 8:53 PM
Author: 180 lodge french chef

So I made a call that required authentication by bringing up my trade history for a particular crypto pair.

But I'm in the network tab in dev tools and have no idea how to find the API key. I clicked on "trade history" and the "headers" tab, and am blindly looking for anything that looks like API, but don't see it. I looked at your Liqui API link, and it references the key I previously mentioned under the "Liqui Trade API" section. I think I need to find the "Liqui Public API" to put into the script.

It's absolutely ridiculous that you have to be some expert computer programmer just to get your trading history from Liqui. FMA

(http://www.autoadmit.com/thread.php?thread_id=3922317&forum_id=2#35634088)