# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
context("Test MarketApi")
api.instance <- MarketApi$new()
test_that("ApiV3AggTradesGet", {
# tests for ApiV3AggTradesGet
# base path: https://api.binance.com
# Compressed/Aggregate Trades List
# Get compressed, aggregate trades. Trades that fill at the time, from the same order, with the same price will have the quantity aggregated. - If `startTime` and `endTime` are sent, time between startTime and endTime must be less than 1 hour. - If `fromId`, `startTime`, and `endTime` are not sent, the most recent aggregate trades will be returned. Weight(IP): 1
# @param symbol character Trading symbol, e.g. BNBUSDT
# @param from.id integer Trade id to fetch from. Default gets most recent trades. (optional)
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param limit integer Default 500; max 1000. (optional)
# @return [array[AggTrade]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3AvgPriceGet", {
# tests for ApiV3AvgPriceGet
# base path: https://api.binance.com
# Current Average Price
# Current average price for a symbol. Weight(IP): 1
# @param symbol character Trading symbol, e.g. BNBUSDT
# @return [InlineResponse2003]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3DepthGet", {
# tests for ApiV3DepthGet
# base path: https://api.binance.com
# Order Book
# | Limit | Weight(IP) | |---------------------|-------------| | 5, 10, 20, 50, 100 | 1 | | 500 | 5 | | 1000 | 10 | | 5000 | 50 |
# @param symbol character Trading symbol, e.g. BNBUSDT
# @param limit integer (optional)
# @return [InlineResponse2002]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3ExchangeInfoGet", {
# tests for ApiV3ExchangeInfoGet
# base path: https://api.binance.com
# Exchange Information
# Current exchange trading rules and symbol information - If any symbol provided in either symbol or symbols do not exist, the endpoint will throw an error. Weight(IP): 10
# @param symbol character Trading symbol, e.g. BNBUSDT (optional)
# @param array.symbols character (optional)
# @return [InlineResponse2001]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3HistoricalTradesGet", {
# tests for ApiV3HistoricalTradesGet
# base path: https://api.binance.com
# Old Trade Lookup
# Get older market trades. Weight(IP): 5
# @param symbol character Trading symbol, e.g. BNBUSDT
# @param limit integer Default 500; max 1000. (optional)
# @param from.id integer Trade id to fetch from. Default gets most recent trades. (optional)
# @return [array[Trade]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3KlinesGet", {
# tests for ApiV3KlinesGet
# base path: https://api.binance.com
# Kline/Candlestick Data
# Kline/candlestick bars for a symbol.\\ Klines are uniquely identified by their open time. - If `startTime` and `endTime` are not sent, the most recent klines are returned. Weight(IP): 1
# @param symbol character Trading symbol, e.g. BNBUSDT
# @param interval character kline intervals
# @param start.time integer UTC timestamp in ms (optional)
# @param end.time integer UTC timestamp in ms (optional)
# @param limit integer Default 500; max 1000. (optional)
# @return [array[array[OneOflongstring]]]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3PingGet", {
# tests for ApiV3PingGet
# base path: https://api.binance.com
# Test Connectivity
# Test connectivity to the Rest API. Weight(IP): 1
# @return [object]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3Ticker24hrGet", {
# tests for ApiV3Ticker24hrGet
# base path: https://api.binance.com
# 24hr Ticker Price Change Statistics
# 24 hour rolling window price change statistics. Careful when accessing this with no symbol. - If the symbol is not sent, tickers for all symbols will be returned in an array. Weight(IP):\\ `1` for a single symbol;\\ `40` when the symbol parameter is omitted;
# @param symbol character Trading symbol, e.g. BNBUSDT (optional)
# @return [OneOftickertickerList]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3TickerBookTickerGet", {
# tests for ApiV3TickerBookTickerGet
# base path: https://api.binance.com
# Symbol Order Book Ticker
# Best price/qty on the order book for a symbol or symbols. - If the symbol is not sent, bookTickers for all symbols will be returned in an array. Weight(IP):\\ `1` for a single symbol;\\ `2` when the symbol parameter is omitted;
# @param symbol character Trading symbol, e.g. BNBUSDT (optional)
# @return [OneOfbookTickerbookTickerList]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3TickerPriceGet", {
# tests for ApiV3TickerPriceGet
# base path: https://api.binance.com
# Symbol Price Ticker
# Latest price for a symbol or symbols. - If the symbol is not sent, prices for all symbols will be returned in an array. Weight(IP):\\ `1` for a single symbol;\\ `2` when the symbol parameter is omitted;
# @param symbol character Trading symbol, e.g. BNBUSDT (optional)
# @return [OneOfpriceTickerpriceTickerList]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3TimeGet", {
# tests for ApiV3TimeGet
# base path: https://api.binance.com
# Check Server Time
# Test connectivity to the Rest API and get the current server time. Weight(IP): 1
# @return [InlineResponse200]
# uncomment below to test the operation
#expect_equal(result, "EXPECTED_RESULT")
})
test_that("ApiV3TradesGet", {
# tests for ApiV3TradesGet
# base path: https://api.binance.com
# Recent Trades List
# Get recent trades. Weight(IP): 1
# @param symbol character Trading symbol, e.g. BNBUSDT
# @param limit integer Default 500; max 1000. (optional)
# @return [array[Trade]]
# 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.