diff --git a/lib/binance.ex b/lib/binance.ex index db11734..4e477ab 100644 --- a/lib/binance.ex +++ b/lib/binance.ex @@ -80,7 +80,7 @@ docs end) |> Kernel.++([ %{name: "api_key", description: "Binance API key, will overwrite env key"}, - %{name: "api_secret", description: "Binance API secret, will overwrite env secret"} + %{name: "secret_key", description: "Binance API secret, will overwrite env secret"} ]) optional_params = diff --git a/test/binance_test.exs b/test/binance_test.exs index 53f2f40..4c1d627 100644 --- a/test/binance_test.exs +++ b/test/binance_test.exs @@ -66,7 +66,7 @@ defmodule BinanceTest do use_cassette "get_open_orders_for_api_key_and_secret_key", match_requests_on: [:headers, :request_body] do assert {:error, {:binance_error, %{code: -2014, msg: "API-key format invalid."}}} = - Binance.Trade.get_open_orders(api_key: "dummy_api_key", api_secret: "hoge") + Binance.Trade.get_open_orders(api_key: "dummy_api_key", secret_key: "hoge") Application.put_env(:binance, :api_key, "dummy_api_key")