{"action":"created","issue":{"url":"https://api.github.com/repos/BitMEX/api-connectors/issues/130","repository_url":"https://api.github.com/repos/BitMEX/api-connectors","labels_url":"https://api.github.com/repos/BitMEX/api-connectors/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/BitMEX/api-connectors/issues/130/comments","events_url":"https://api.github.com/repos/BitMEX/api-connectors/issues/130/events","html_url":"https://github.com/BitMEX/api-connectors/issues/130","id":320988181,"number":130,"title":"trailing stop loss order","user":{"login":"AhmMontasser","id":7930237,"avatar_url":"https://avatars0.githubusercontent.com/u/7930237?v=4","gravatar_id":"","url":"https://api.github.com/users/AhmMontasser","html_url":"https://github.com/AhmMontasser","followers_url":"https://api.github.com/users/AhmMontasser/followers","following_url":"https://api.github.com/users/AhmMontasser/following{/other_user}","gists_url":"https://api.github.com/users/AhmMontasser/gists{/gist_id}","starred_url":"https://api.github.com/users/AhmMontasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AhmMontasser/subscriptions","organizations_url":"https://api.github.com/users/AhmMontasser/orgs","repos_url":"https://api.github.com/users/AhmMontasser/repos","events_url":"https://api.github.com/users/AhmMontasser/events{/privacy}","received_events_url":"https://api.github.com/users/AhmMontasser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-07T23:05:09Z","updated_at":"2018-05-12T12:31:43Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\n\r\nAm trying to set correct trailing stoploss orders. However, i don't clearly understand the difference between the following parameters \r\n\r\npegOffsetValue => i don't know what is this exactly and i didn't understand the documentation or get it by trying\r\nprice => i understand this is the execution price.\r\nstopPx => i understand this is the price at which the order is submitted to the order book \r\n\r\ni tried different setups on the testnet to understand by trial but i am not sure if i get things right, \r\n Also, i don't see the order moving with the price as expected when using for example \r\n\r\n> client.Order.Order_new(symbol='XBTUSD', ordType='StopLimit',pegPriceType='TrailingStopPeg',pegOffsetValue=-20,orderQty=-10, price=tick['last']-200,stopPx=tick['last']-50).result()\r\n\r\nThanks for your help,\r\n"},"comment":{"url":"https://api.github.com/repos/BitMEX/api-connectors/issues/comments/388552025","html_url":"https://github.com/BitMEX/api-connectors/issues/130#issuecomment-388552025","issue_url":"https://api.github.com/repos/BitMEX/api-connectors/issues/130","id":388552025,"user":{"login":"AhmMontasser","id":7930237,"avatar_url":"https://avatars0.githubusercontent.com/u/7930237?v=4","gravatar_id":"","url":"https://api.github.com/users/AhmMontasser","html_url":"https://github.com/AhmMontasser","followers_url":"https://api.github.com/users/AhmMontasser/followers","following_url":"https://api.github.com/users/AhmMontasser/following{/other_user}","gists_url":"https://api.github.com/users/AhmMontasser/gists{/gist_id}","starred_url":"https://api.github.com/users/AhmMontasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AhmMontasser/subscriptions","organizations_url":"https://api.github.com/users/AhmMontasser/orgs","repos_url":"https://api.github.com/users/AhmMontasser/repos","events_url":"https://api.github.com/users/AhmMontasser/events{/privacy}","received_events_url":"https://api.github.com/users/AhmMontasser/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T12:31:43Z","updated_at":"2018-05-12T12:31:43Z","author_association":"NONE","body":"very good \r\nthank you @ryanfox  \r\n\r\nwhen i tried the order chased the price by changing the trigger but the limit price remains the same ? \r\nis that normal ? can i allow the limit price to chase also ? "}}
{"actor":{"display_login":"AhmMontasser"}}