Open masterkain opened 5 years ago
on testnet (in my case MIX_ENV=dev) it seems to work:
{:ok,
%HTTPoison.Response{
body: %{"error" => %{"message" => "Not Found", "name" => "HTTPError"}},
headers: [
{"Date", "Sat, 02 Mar 2019 16:46:22 GMT"},
{"Content-Type", "application/json; charset=utf-8"},
{"Content-Length", "52"},
{"Connection", "keep-alive"},
{"X-RateLimit-Limit", "300"},
{"X-RateLimit-Remaining", "294"},
{"X-RateLimit-Reset", "1551545183"},
{"X-Powered-By", "Profit"},
{"ETag", "W/\"34-RQXM2uXYmuIoWfjaEE+8njrbtb0\""},
{"Strict-Transport-Security", "max-age=31536000; includeSubDomains"}
],
request: nil,
request_url: "https://testnet.bitmex.com/api/v1/order",
status_code: 404
}}
maybe in live there are no X-RateLimit headers
at the moment? not sure.
another issue with async httpoison requests is that at present time it makes not possible to work out specs with exvcr due to this: https://github.com/parroty/exvcr/issues/75
I'm trying a simple
Bitmex.Rest.Order.delete(order_ids)
against bitmex live:any idea? thanks