place_order tag and tags

ferdinand.sousa
Hi everyone, when placing orders I have used the tag parameter. I noticed that there is also a tags parameter when fetching order history which has multiple tags in the response shown in the documentation. Is it possible to add multiple tags when using place_order() call?
  • rakeshr
    Is it possible to add multiple tags when using place_order() call?
    Yes. Go through the order placement FAQs here.
  • ferdinand.sousa
    ferdinand.sousa edited August 5
    Thanks Rakesh. This worked.
    When placing using place_order with tag=['tag1','tag2'] they are set as explained.
    When I check the response from orders() the order returns the following values:
    order['tag'] = 'tag1' # Is this always the 1st tag?
    order['tags'] = ['tag1', 'tag2'] # Is the tag order always the way it was set?
  • rakeshr
    order['tags'] = ['tag1', 'tag2'] # is the tag order always the way it was set?
    No, the order is not guaranteed.
  • ferdinand.sousa
    @rakeshr
    What about the order['tag'] = 'tag1' # Is this always the 1st tag?
Sign In or Register to comment.