lib/huobi_client/request.rb in huobi_client-0.1.0 vs lib/huobi_client/request.rb in huobi_client-0.1.1
- old
+ new
@@ -26,9 +26,10 @@
sign "#{method.to_s.upcase}\napi.huobi.pro\n#{path}\n#{str}"
end
def connect(method, path, options)
options.compact!
+ options.transform_keys! { |key| key.to_s }
params = {
AccessKeyId: @access,
SignatureMethod: 'HmacSHA256',
SignatureVersion: HuobiClient::Config::SIGNATURE_VERSION,
Timestamp: Time.now.getutc.strftime("%Y-%m-%dT%H:%M:%S")