From 285ae325ad1474690e726525d577df0e34b75b57 Mon Sep 17 00:00:00 2001 From: David Mohl Date: Fri, 3 Nov 2023 13:29:05 +0900 Subject: [PATCH] Rename api_secret -> secret_key for consistency --- lib/binance.ex | 2 +- test/binance_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")