# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test WalletApi")
api.instance <- WalletApi$new()
test_that("SapiV1AccountApiRestrictionsGet", {
# tests for SapiV1AccountApiRestrictionsGet
# base path: https://api.binance.com
# Get API Key Permission (USER_DATA)
# Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20045]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AccountApiTradingStatusGet", {
# tests for SapiV1AccountApiTradingStatusGet
# base path: https://api.binance.com
# Account API Trading Status (USER_DATA)
# Fetch account API trading status with details. Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20036]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AccountDisableFastWithdrawSwitchPost", {
# tests for SapiV1AccountDisableFastWithdrawSwitchPost
# base path: https://api.binance.com
# Disable Fast Withdraw Switch (USER_DATA)
# - This request will disable fastwithdraw switch under your account. - You need to enable \"trade\" option for the api key which requests this endpoint. Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [object]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AccountEnableFastWithdrawSwitchPost", {
# tests for SapiV1AccountEnableFastWithdrawSwitchPost
# base path: https://api.binance.com
# Enable Fast Withdraw Switch (USER_DATA)
# - This request will enable fastwithdraw switch under your account. You need to enable \"trade\" option for the api key which requests this endpoint. - When Fast Withdraw Switch is on, transferring funds to a Binance account will be done instantly. There is no on-chain transaction, no transaction ID and no withdrawal fee. Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [object]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AccountSnapshotGet", {
# tests for SapiV1AccountSnapshotGet
# base path: https://api.binance.com
# Daily Account Snapshot (USER_DATA)
# Weight(IP): 2400
# @param type character
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param limit integer (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [OneOfsnapshotSpotsnapshotMarginsnapshotFutures]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AccountStatusGet", {
# tests for SapiV1AccountStatusGet
# base path: https://api.binance.com
# Account Status (USER_DATA)
# Fetch account status detail. Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20035]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetAssetDetailGet", {
# tests for SapiV1AssetAssetDetailGet
# base path: https://api.binance.com
# Asset Detail (USER_DATA)
# Fetch details of assets supported on Binance. - Please get network and other deposit or withdraw details from `GET /sapi/v1/capital/config/getall`. Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param asset character (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20040]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetAssetDividendGet", {
# tests for SapiV1AssetAssetDividendGet
# base path: https://api.binance.com
# Asset Dividend Record (USER_DATA)
# Query asset Dividend Record Weight(IP): 10
# @param limit character
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param asset character (optional)
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20039]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetDribbletGet", {
# tests for SapiV1AssetDribbletGet
# base path: https://api.binance.com
# DustLog(USER_DATA)
# Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20037]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetDustPost", {
# tests for SapiV1AssetDustPost
# base path: https://api.binance.com
# Dust Transfer (USER_DATA)
# Convert dust assets to BNB. Weight(UID): 10
# @param asset character The asset being converted. For example, asset=BTC&asset=USDT
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20038]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetGetFundingAssetPost", {
# tests for SapiV1AssetGetFundingAssetPost
# base path: https://api.binance.com
# Funding Wallet (USER_DATA)
# - Currently supports querying the following business assets:Binance Pay, Binance Card, Binance Gift Card, Stock Token Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param asset character (optional)
# @param need.btc.valuation character (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [array[InlineResponse20044]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetTradeFeeGet", {
# tests for SapiV1AssetTradeFeeGet
# base path: https://api.binance.com
# Trade Fee (USER_DATA)
# Fetch trade fee Weight(IP): 1
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param symbol character Trading symbol, e.g. BNBUSDT (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [array[InlineResponse20041]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetTransferGet", {
# tests for SapiV1AssetTransferGet
# base path: https://api.binance.com
# Query User Universal Transfer History (USER_DATA)
# - `fromSymbol` must be sent when type are ISOLATEDMARGIN_MARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN - `toSymbol` must be sent when type are MARGIN_ISOLATEDMARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN - Support query within the last 6 months only - If `startTime` and `endTime` not sent, return records of the last 7 days by default Weight(IP): 1
# @param type character Universal transfer type
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param current integer Current querying page. Start from 1. Default:1 (optional)
# @param size integer Default:10 Max:100 (optional)
# @param from.symbol character Must be sent when type are ISOLATEDMARGIN_MARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN (optional)
# @param to.symbol character Must be sent when type are MARGIN_ISOLATEDMARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20042]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1AssetTransferPost", {
# tests for SapiV1AssetTransferPost
# base path: https://api.binance.com
# User Universal Transfer (USER_DATA)
# You need to enable `Permits Universal Transfer` option for the api key which requests this endpoint. - `fromSymbol` must be sent when type are ISOLATEDMARGIN_MARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN - `toSymbol` must be sent when type are MARGIN_ISOLATEDMARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN ENUM of transfer types: - MAIN_UMFUTURE Spot account transfer to USDⓈ-M Futures account - MAIN_CMFUTURE Spot account transfer to COIN-M Futures account - MAIN_MARGIN Spot account transfer to Margin(cross)account - MAIN_MINING Spot account transfer to Mining account - UMFUTURE_MAIN USDⓈ-M Futures account transfer to Spot account - UMFUTURE_MARGIN USDⓈ-M Futures account transfer to Margin(cross)account - CMFUTURE_MAIN COIN-M Futures account transfer to Spot account - CMFUTURE_MARGIN COIN-M Futures account transfer to Margin(cross) account - MARGIN_MAIN Margin(cross)account transfer to Spot account - MARGIN_UMFUTURE Margin(cross)account transfer to USDⓈ-M Futures - MARGIN_CMFUTURE Margin(cross)account transfer to COIN-M Futures - MARGIN_MINING Margin(cross)account transfer to Mining account - MINING_MAIN Mining account transfer to Spot account - MINING_UMFUTURE Mining account transfer to USDⓈ-M Futures account - MINING_MARGIN Mining account transfer to Margin(cross) account - ISOLATEDMARGIN_MARGIN Isolated margin account transfer to Margin(cross) account - MARGIN_ISOLATEDMARGIN Margin(cross) account transfer to Isolated margin account - ISOLATEDMARGIN_ISOLATEDMARGIN Isolated margin account transfer to Isolated margin account - MAIN_FUNDING Spot account transfer to Funding account - FUNDING_MAIN Funding account transfer to Spot account - FUNDING_UMFUTURE Funding account transfer to UMFUTURE account - UMFUTURE_FUNDING UMFUTURE account transfer to Funding account - MARGIN_FUNDING MARGIN account transfer to Funding account - FUNDING_MARGIN Funding account transfer to Margin account - FUNDING_CMFUTURE Funding account transfer to CMFUTURE account - CMFUTURE_FUNDING CMFUTURE account transfer to Funding account Weight(IP): 1
# @param type character Universal transfer type
# @param asset character
# @param amount numeric
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param from.symbol character Must be sent when type are ISOLATEDMARGIN_MARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN (optional)
# @param to.symbol character Must be sent when type are MARGIN_ISOLATEDMARGIN and ISOLATEDMARGIN_ISOLATEDMARGIN (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20043]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1CapitalConfigGetallGet", {
# tests for SapiV1CapitalConfigGetallGet
# base path: https://api.binance.com
# All Coins' Information (USER_DATA)
# Get information of coins (available for deposit and withdraw) for user. Weight(IP): 10
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [array[InlineResponse20030]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1CapitalDepositAddressGet", {
# tests for SapiV1CapitalDepositAddressGet
# base path: https://api.binance.com
# Deposit Address (supporting network) (USER_DATA)
# Fetch deposit address with network. - If network is not send, return with default network of the coin. - You can get network and isDefault in networkList in the response of Get /sapi/v1/capital/config/getall (HMAC SHA256). Weight(IP): 10
# @param coin character Coin name
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param network character (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20034]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1CapitalDepositHisrecGet", {
# tests for SapiV1CapitalDepositHisrecGet
# base path: https://api.binance.com
# Deposit History(supporting network) (USER_DATA)
# Fetch deposit history. - Please notice the default `startTime` and `endTime` to make sure that time interval is within 0-90 days. - If both `startTime` and `endTime` are sent, time between `startTime` and `endTime` must be less than 90 days. Weight(IP): 1
# @param coin character Coin name
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param status integer 0 -> pending\\ 6 -> credited but cannot withdraw\\ 1 -> success (optional)
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param offset integer (optional)
# @param limit integer Default 500; max 1000. (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [array[InlineResponse20032]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1CapitalWithdrawApplyPost", {
# tests for SapiV1CapitalWithdrawApplyPost
# base path: https://api.binance.com
# Withdraw (USER_DATA)
# Submit a withdraw request. - If `network` not send, return with default network of the coin. - You can get `network` and `isDefault` in `networkList` of a coin in the response of `Get /sapi/v1/capital/config/getall (HMAC SHA256)`. Weight(IP): 1
# @param coin character Coin name
# @param address character
# @param amount numeric
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param withdraw.order.id character Client id for withdraw (optional)
# @param network character Get the value from `GET /sapi/v1/capital/config/getall` (optional)
# @param address.tag character Secondary address identifier for coins like XRP,XMR etc. (optional)
# @param transaction.fee.flag character When making internal transfer - `true` -> returning the fee to the destination account; - `false` -> returning the fee back to the departure account. (optional)
# @param name character (optional)
# @param wallet.type integer The wallet type for withdraw,0-Spot wallet, 1- Funding wallet. Default is Spot wallet (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [InlineResponse20031]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1CapitalWithdrawHistoryGet", {
# tests for SapiV1CapitalWithdrawHistoryGet
# base path: https://api.binance.com
# Withdraw History (supporting network) (USER_DATA)
# Fetch withdraw history. - `network` may not be in the response for old withdraw. - Please notice the default `startTime` and `endTime` to make sure that time interval is within 0-90 days. - If both `startTime` and `endTime` are sent, time between `startTime` and `endTime` must be less than 90 days Weight(IP): 1
# @param coin character Coin name
# @param timestamp integer UTC timestamp in ms
# @param signature character Signature
# @param withdraw.order.id character (optional)
# @param status integer 0:Email Sent 1:Cancelled 2:Awaiting Approval 3:Rejected 4:Processing 5:Failure 6:Completed (optional)
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param offset integer (optional)
# @param limit integer Default 500; max 1000. (optional)
# @param recv.window integer The value cannot be greater than 60000 (optional)
# @return [array[InlineResponse20033]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("SapiV1SystemStatusGet", {
# tests for SapiV1SystemStatusGet
# base path: https://api.binance.com
# System Status (System)
# Fetch system status. Weight(IP): 1
# @return [InlineResponse20029]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.