tests/testthat/test_trade.R

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

context("Test Trade")

model.instance <- Trade$new()

test_that("id", {
  # tests for the property `id` (integer)
  # trade id

  # uncomment below to test the property
  #expect_equal(model.instance$`id`, "EXPECTED_RESULT")
})

test_that("price", {
  # tests for the property `price` (character)
  # price

  # uncomment below to test the property
  #expect_equal(model.instance$`price`, "EXPECTED_RESULT")
})

test_that("qty", {
  # tests for the property `qty` (character)
  # amount of base asset

  # uncomment below to test the property
  #expect_equal(model.instance$`qty`, "EXPECTED_RESULT")
})

test_that("quoteQty", {
  # tests for the property `quoteQty` (character)
  # amount of quote asset

  # uncomment below to test the property
  #expect_equal(model.instance$`quoteQty`, "EXPECTED_RESULT")
})

test_that("time", {
  # tests for the property `time` (integer)
  # Trade executed timestamp, as same as &#x60;T&#x60; in the stream

  # uncomment below to test the property
  #expect_equal(model.instance$`time`, "EXPECTED_RESULT")
})

test_that("isBuyerMaker", {
  # tests for the property `isBuyerMaker` (character)

  # uncomment below to test the property
  #expect_equal(model.instance$`isBuyerMaker`, "EXPECTED_RESULT")
})

test_that("isBestMatch", {
  # tests for the property `isBestMatch` (character)

  # uncomment below to test the property
  #expect_equal(model.instance$`isBestMatch`, "EXPECTED_RESULT")
})
grahamjwhite/binanceRapi documentation built on Nov. 22, 2022, 9:37 p.m.