Skip to content
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

This is NOT issue BUT need TXID FULL #37

Closed
edudiy opened this issue Dec 20, 2020 · 8 comments
Closed

This is NOT issue BUT need TXID FULL #37

edudiy opened this issue Dec 20, 2020 · 8 comments
Labels

Comments

@edudiy
Copy link

edudiy commented Dec 20, 2020

Hello, excellent program !!

clikraken place sell -t market 0.10001 or clikraken place buy -t market 0.10001

and the output is:

sell 0.10001000 LTCEUR @ market
OB3PSH-PFSXO-6MCFPZ

imagen

I need full trade info !!

This:

txid;time;pair;type;ordertype;vol;price;cost;fee;margin;ordertxid;misc
TA3SLG-BR4EU-7X7WU7;2020-12-19 21:20:05+00:00;XLTCZEUR;sell;market;0.10001000;99.51995;9.95299;0.01990;0.00000;OB3PSH-PFSXO-6MCFPZ;

I want launch this:

clikraken place sell -t market 0.10001 and output in the file: OB3PSH-PFSXO-6MCFPZ.txt or add to my file with all trades: trades_full.txt ( after with grep I can search this "OB3PSH-PFSXO-6MCFPZ" in trades_full.txt and select only this line )

In BASH I undestand but in python am a fisher man.

Do you helpme that file must change o modify in clikraken for only add full trade in file txt ¿?

It´s is important for fee, final value of operation, ticket of kraken that is as show in WEB of Kraken not for Id OP ( OB3PSH-PFSXO-6MCFPZ ).

I tried this in file "place_order.py", but nothing:

imagen

Thanks for this GREAT program !! EXCELLENT

@zertrin
Copy link
Owner

zertrin commented Dec 20, 2020

Thanks for asking. Note that I am not maintaining this tool anymore, as I have stopped trading cryptocurrencies myself.

What you would like is not really possible, because this information is not available from response data given by the Kraken API when placing a trade.

See https://www.kraken.com/features/api#add-standard-order

And notice that the return is only:

descr = order description info
    order = order description
    close = conditional close order description (if conditional close set)
txid = array of transaction ids for order (if order was added successfully)

Which is exactly the data that clikraken returns to the user. There is no more data to show after placing an order.

Do note that when placing an order, the trade has not really been done yet (even if the order type is market). The trade happens after the order is submitted. This is why the Place Order API cannot return any information about the trade itself (such as fee, cost, ...).

Additional information about trades is only available by using the TradesHistory API or QueryTrades API, which is available using clikraken --csv trades.

usage: clikraken trades [-h] [-t TYPE] [-s START] [-e END] [-o OFS] [-i ID]
                        [-p PAIR]

optional arguments:
  -h, --help            show this help message and exit
  -t TYPE, --type TYPE  type of trade. Values: all|any position|closed
                        position|closing position|no position (default: all)
  -s START, --start START
                        starting unix timestamp or trade tx id of results
                        (exclusive) (default: None)
  -e END, --end END     ending unix timestamp or trade tx id of results
                        (exclusive) (default: None)
  -o OFS, --ofs OFS     result offset (default: None)
  -i ID, --id ID        comma delimited list of transaction ids to query info
                        about (20 maximum) (default: None)
  -p PAIR, --pair PAIR  asset pair (default: None)

@zertrin
Copy link
Owner

zertrin commented Dec 20, 2020

Note also that a trade ID (starting with T) and an order ID (starting with O) are different things.

One order ID can generate more than one trade (because sometimes it is not possible to fill the order with only one trade, so the order is filled in multiple trades).

Consequently, you need to figure out which trades belong to which order using the trade history. This logic can be implemented by the user and is not in the scope of clikraken (which is just an API client for Kraken.com)

@edudiy
Copy link
Author

edudiy commented Dec 20, 2020

Ok, thks for response & all.

I test:

clikraken trades --i TA3SLG-BR4EU-7X7WU7 and the result is excellent, all info because I have Trade ID.

But, when an operation launch the exit is: Order ID

Do exist any form to search for Order ID and locate the rest of the all info ?

txid time pair type ordertype vol price cost fee margin ordertxid misc


TA3SLG-BR4EU-7X7WU7 2020-12-19 21:20:05+00:00 XLTCZEUR sell market 0.10001 99.51995 9.95299 0.0199 0 OB3PSH-PFSXO-6MCFPZ

I have a BOT in BASH with implemented searching of TRADES ID, but any times, are more than 50 Operations and when the BOT launch:

clikraken --csv trades > id_op_trades.txt

This Trade is NOT, is more older than 50 last operations.

Do exist any form to search for Order ID and locate the rest of the all info ?

Thank your so much !!

@zertrin
Copy link
Owner

zertrin commented Dec 22, 2020

Only from the ledgers or trade history. You need to query more data from the API if you have many trades. Look at start and end options shown above.

@edudiy
Copy link
Author

edudiy commented Dec 28, 2020

Ok, thks !!

Now I can search for TIME STAMP, it's excellent !!

How can I see the VOLUME with clikraken ?

$371,406.87 / $500,000 (74.28%)

And it´s possible the rest of info of VOLUME as view via WEB of Kraken:

0.10 0.20% Tarifa actual ( Fee NOW )

$371,406.87 / $500,000 (74.28%)

0.08 0.18% Siguiente Tarifa ( Next Fee )

imagen

Thanks allways !!

@zertrin
Copy link
Owner

zertrin commented Dec 31, 2020

Sorry but not all API endpoints have been implemented in clikraken.

For reference, I have now added the list of supported API endpoints to the README:
https://github.com/zertrin/clikraken/blob/master/README.md#list-of-supported-kraken-api-endpoints

As mentioned earlier, I do not maintain this tool anymore, but since it's open source, anyone can fork it and implement additional features if they wish so.

I suspect the TradeVolume API (https://www.kraken.com/features/api#get-trade-volume) isn't hard to implement.

@edudiy
Copy link
Author

edudiy commented Feb 1, 2021

Thks for your CLIENT & your responses !!

I have a new problem than don´t understand...

imagen

This problem it´s new for me, ...the orders in market not execute and shown this message.

I search and don't see it

@zertrin
Copy link
Owner

zertrin commented Feb 1, 2021

Sorry, this is an error directly from Kraken API. You should contact Kraken support instead.

@zertrin zertrin closed this as completed Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants