Skip to content

Commit 2711b68

Browse files
authoredAug 27, 2018
Merge pull request #323 from chrisjbroeren/patch-1
updated authenticated_client.py
2 parents f6daf37 + 6af1519 commit 2711b68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎cbpro/authenticated_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ def place_order(self, product_id, side, order_type, **kwargs):
234234
# Limit order checks
235235
if order_type == 'limit':
236236
if kwargs.get('cancel_after') is not None and \
237-
kwargs.get('tif') != 'GTT':
237+
kwargs.get('time_in_force') != 'GTT':
238238
raise ValueError('May only specify a cancel period when time '
239239
'in_force is `GTT`')
240-
if kwargs.get('post_only') is not None and kwargs.get('tif') in \
240+
if kwargs.get('post_only') is not None and kwargs.get('time_in_force') in \
241241
['IOC', 'FOK']:
242242
raise ValueError('post_only is invalid when time in force is '
243243
'`IOC` or `FOK`')

0 commit comments

Comments
 (0)
Please sign in to comment.