tests/testthat/test_stream_api.R

# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate

context("Test StreamApi")

api.instance <- StreamApi$new()

test_that("ApiV3UserDataStreamDelete", {
  # tests for ApiV3UserDataStreamDelete
  # base path: https://api.binance.com
  # Close a ListenKey (USER_STREAM)
  # Close out a user data stream.  Weight: 1
  # @param listen.key character User websocket listen key (optional)
  # @return [object]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ApiV3UserDataStreamPost", {
  # tests for ApiV3UserDataStreamPost
  # base path: https://api.binance.com
  # Create a ListenKey (USER_STREAM)
  # Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active &#x60;listenKey&#x60;, that &#x60;listenKey&#x60; will be returned and its validity will be extended for 60 minutes.  Weight: 1
  # @return [InlineResponse20070]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ApiV3UserDataStreamPut", {
  # tests for ApiV3UserDataStreamPut
  # base path: https://api.binance.com
  # Ping/Keep-alive a ListenKey (USER_STREAM)
  # Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It&#39;s recommended to send a ping about every 30 minutes.  Weight: 1
  # @param listen.key character User websocket listen key (optional)
  # @return [object]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})
grahamjwhite/binanceRapi documentation built on Nov. 22, 2022, 9:37 p.m.