Skip to content

Commit 8fefa3e

Browse files
committed
feat: update method links
1 parent 45e0d21 commit 8fefa3e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/cryptomarket/client.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def get_all_active_spot_orders(symbol:nil)
422422
#
423423
# Requires the "Place/cancel orders" API key Access Right
424424
#
425-
# https://api.exchange.cryptomkt.com/#get-active-spot-orders
425+
# https://api.exchange.cryptomkt.com/#get-active-spot-order
426426
#
427427
# ==== Params
428428
# +String+ +client_order_id+:: The client order id of the order
@@ -518,7 +518,7 @@ def create_spot_order(
518518
# - For an OTOCO order list, the secondary orders have the same restrictions as an OCO order
519519
# - Default is OrderType.Limit
520520
#
521-
# https://api.exchange.cryptomkt.com/#create-new-spot-order-list-2
521+
# https://api.exchange.cryptomkt.com/#create-new-spot-order-list
522522
#
523523
# ==== Params
524524
# +String+ +order_list_id+:: order list identifier. If ommited, it will be generated by the system. Must be equal to the client order id of the first order in the request
@@ -600,7 +600,7 @@ def cancel_spot_order(client_order_id:)
600600
#
601601
# Requires the "Place/cancel orders" API key Access Right
602602
#
603-
# https://api.exchange.cryptomkt.com/#get-all-trading-commission
603+
# https://api.exchange.cryptomkt.com/#get-all-trading-commissions
604604

605605
def get_all_trading_commission
606606
get("spot/fee")
@@ -739,7 +739,7 @@ def get_wallet_balance(currency:)
739739
#
740740
# Requires the "Payment information" API key Access Right
741741
#
742-
# https://api.exchange.cryptomkt.com/#deposit-crypto-address
742+
# https://api.exchange.cryptomkt.com/#get-deposit-crypto-address
743743

744744
def get_deposit_crypto_addresses()
745745
return get("wallet/crypto/address")
@@ -752,7 +752,7 @@ def get_deposit_crypto_addresses()
752752
#
753753
# Requires the "Payment information" API key Access Right
754754
#
755-
# https://api.exchange.cryptomkt.com/#deposit-crypto-address
755+
# https://api.exchange.cryptomkt.com/#get-deposit-crypto-address
756756
#
757757
# ==== Params
758758
# +String+ +currency+:: Currency to get the address
@@ -771,7 +771,7 @@ def get_deposit_crypto_address(currency:nil, network_code:nil)
771771
#
772772
# Requires the "Payment information" API key Access Right
773773
#
774-
# https://api.exchange.cryptomkt.com/#deposit-crypto-address
774+
# https://api.exchange.cryptomkt.com/#generate-deposit-crypto-address
775775
#
776776
# ==== Params
777777
# +String+ +currency+:: currency to create a new address
@@ -786,7 +786,7 @@ def create_deposit_crypto_address(currency:, network_code:nil)
786786
#
787787
# Requires the "Payment information" API key Access Right
788788
#
789-
# https://api.exchange.cryptomkt.com/#last-10-deposit-crypto-address
789+
# https://api.exchange.cryptomkt.com/#last-10-deposit-crypto-addresses
790790
#
791791
# ==== Params
792792
# +String+ +currency+:: currency to get the list of addresses
@@ -906,7 +906,7 @@ def get_estimate_withdrawal_fees(fee_requests)
906906
#
907907
# Requires the "Payment information" API key Access Right
908908
#
909-
# https://api.exchange.cryptomkt.com/#estimate-withdraw-fee
909+
# https://api.exchange.cryptomkt.com/#estimate-withdrawal-fee
910910
#
911911
# ==== Params
912912
# +String+ +currency+:: the currency code for withdrawal

lib/cryptomarket/websocket/walletClient.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def unsubscribe_to_transactions(result_callback:nil)
6060
#
6161
# only non-zero values are present
6262
#
63-
# https://api.exchange.cryptomkt.com/#subscribe-to-wallet-balance
63+
# https://api.exchange.cryptomkt.com/#subscribe-to-wallet-balances
6464
#
6565
# ==== Params
6666
# +Proc+ +callback+:: A +Proc+ that recieves notifications as a list of balances, and the type of notification (either 'snapshot' or 'update')
@@ -79,7 +79,7 @@ def subscribe_to_wallet_balance(callback:, result_callback:nil)
7979

8080
# stop recieving the feed of balances changes
8181
#
82-
# https://api.exchange.cryptomkt.com/#subscribe-to-wallet-balance
82+
# https://api.exchange.cryptomkt.com/#subscribe-to-wallet-balances
8383
#
8484
# ==== Params
8585
# +Proc+ +callback+:: Optional. A +Proc+ of two arguments, An exception and a result, called either with the exception or with the result, a boolean value, indicating the success of the unsubscription
@@ -109,7 +109,7 @@ def get_wallet_balances(callback:)
109109
# +String+ +currency+:: The currency code to query the balance
110110
# +Proc+ +callback+:: A +Proc+ called with an user balance
111111

112-
def get_wallet_balance_of_currency(currency:, callback:)
112+
def get_wallet_balance(currency:, callback:)
113113
send_by_id('wallet_balance', callback, {currency:currency})
114114
end
115115

0 commit comments

Comments
 (0)