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

No ability to trade "post only" (commission free) #12

Open
remarqUK opened this issue Jan 22, 2018 · 1 comment
Open

No ability to trade "post only" (commission free) #12

remarqUK opened this issue Jan 22, 2018 · 1 comment

Comments

@remarqUK
Copy link

remarqUK commented Jan 22, 2018

The buy / post functions are missing the optional post_only flag. e.g:

{ "id": "d0c5340b-6d6c-49d9-b567-48c4bfca13d2", "price": "0.10000000", "size": "0.01000000", "product_id": "BTC-USD", "side": "buy", "stp": "dc", "type": "limit", "time_in_force": "GTC", "post_only": false, "created_at": "2016-12-08T20:02:28.53864Z", "fill_fees": "0.0000000000000000", "filled_size": "0.00000000", "executed_value": "0.0000000000000000", "status": "pending", "settled": false }

As per the GDAX API docs:

https://docs.gdax.com/#orders

'Post Only' will ensure that the order is only executed if the entire order can be posted to the order book.

If any part of the order crosses the spread to fill an existing order, an error will be displayed and the order will not be executed. This is useful for guaranteeing that the entire order is subject to a 0% maker order fee rate.

@justinalick
Copy link

When you call the buy or sell method in the Trader class, you can pass an argument to post only: post_only=True

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