{"action":"created","issue":{"url":"https://api.github.com/repos/tradernet/tn.api/issues/19","repository_url":"https://api.github.com/repos/tradernet/tn.api","labels_url":"https://api.github.com/repos/tradernet/tn.api/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/tradernet/tn.api/issues/19/comments","events_url":"https://api.github.com/repos/tradernet/tn.api/issues/19/events","html_url":"https://github.com/tradernet/tn.api/issues/19","id":199350265,"number":19,"title":"Клиент на Ruby","user":{"login":"ilyacherevkov","id":822364,"avatar_url":"https://avatars.githubusercontent.com/u/822364?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyacherevkov","html_url":"https://github.com/ilyacherevkov","followers_url":"https://api.github.com/users/ilyacherevkov/followers","following_url":"https://api.github.com/users/ilyacherevkov/following{/other_user}","gists_url":"https://api.github.com/users/ilyacherevkov/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyacherevkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyacherevkov/subscriptions","organizations_url":"https://api.github.com/users/ilyacherevkov/orgs","repos_url":"https://api.github.com/users/ilyacherevkov/repos","events_url":"https://api.github.com/users/ilyacherevkov/events{/privacy}","received_events_url":"https://api.github.com/users/ilyacherevkov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-07T08:41:51Z","updated_at":"2017-01-09T14:21:34Z","closed_at":null,"body":"1. **REST клиент Ruby**\r\n\r\nC рождеством! Помогите, пожалуйста, я пишу клиент на ruby под REST.  \r\nПри отправке команды, требующей аутентификации, от сервера приходит ответ \r\n`{\"code\"=>15, \"errMsg\"=>\"Bad nonce.\"}` При этом, заявки и позиции успешно открываются и видны в веб-интерфейсе.\r\nВот [ссылка на Gist ](https://gist.github.com/ilyacherevkov/61d9b03c2c2880974f78c8838079d6b7) \r\n\r\nNonce всегда возрастающий, генерируется примерно как в примере на python, длина такая же. Подпись в python и в ruby  получается идентичной при подставлении одинакового nonce.\r\nКлиент нужен для того, чтобы запустить бота. Это не HFT, максимум 2 сделки в день, поэтому достаточно REST вполне.\r\n\r\n2. **Есть ли REST интерфейс (v2) для получения стакана, а также OHLC / HLOC?**\r\n\r\nВ примерах не нашел - только socket.\r\n\r\n**P.S.** Пример на PHP, скачанный сайта, мне возвращает `{\"code\":4,\"errMsg\":\"Bad sign.\"}`\r\n**P.S. 2**  Для ws тоже пытался написать клиент, но не понял пока где актуальная документация по аутентификации через API ключи. ситуация похожа на [#16](https://github.com/tradernet/tn.api/issues/16). Вот [ссылка на Gist](https://gist.github.com/ilyacherevkov/7873017f8152b3d0e24f5b8e345b1ab1) с наработками по ws - работает только получение котировок и т.п. Выставление ордеров - нет. "},"comment":{"url":"https://api.github.com/repos/tradernet/tn.api/issues/comments/271295674","html_url":"https://github.com/tradernet/tn.api/issues/19#issuecomment-271295674","issue_url":"https://api.github.com/repos/tradernet/tn.api/issues/19","id":271295674,"user":{"login":"Dmatafonov","id":8863854,"avatar_url":"https://avatars.githubusercontent.com/u/8863854?v=3","gravatar_id":"","url":"https://api.github.com/users/Dmatafonov","html_url":"https://github.com/Dmatafonov","followers_url":"https://api.github.com/users/Dmatafonov/followers","following_url":"https://api.github.com/users/Dmatafonov/following{/other_user}","gists_url":"https://api.github.com/users/Dmatafonov/gists{/gist_id}","starred_url":"https://api.github.com/users/Dmatafonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dmatafonov/subscriptions","organizations_url":"https://api.github.com/users/Dmatafonov/orgs","repos_url":"https://api.github.com/users/Dmatafonov/repos","events_url":"https://api.github.com/users/Dmatafonov/events{/privacy}","received_events_url":"https://api.github.com/users/Dmatafonov/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T14:21:34Z","updated_at":"2017-01-09T14:21:34Z","body":"Стакан шлет столько данных что для него REST и не планируется. Задосите нас.\r\n\r\n"}}
{"actor":{"display_login":"Dmatafonov"}}