<?php
namespace ccxt;

// ----------------------------------------------------------------------------

// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code

// -----------------------------------------------------------------------------
include_once PATH_TO_CCXT . '/test/exchange/base/test_shared_methods.php';

function test_funding_rate_history($exchange, $skipped_properties, $method, $entry, $symbol) {
    $format = array(
        'info' => array(),
        'symbol' => 'BTC/USDT:USDT',
        'timestamp' => 1638230400000,
        'datetime' => '2021-11-30T00:00:00.000Z',
        'fundingRate' => $exchange->parse_number('0.0006'),
    );
    assert_structure($exchange, $skipped_properties, $method, $entry, $format);
    assert_symbol($exchange, $skipped_properties, $method, $entry, 'symbol', $symbol);
    assert_timestamp_and_datetime($exchange, $skipped_properties, $method, $entry);
    assert_greater($exchange, $skipped_properties, $method, $entry, 'fundingRate', '-100');
    assert_less($exchange, $skipped_properties, $method, $entry, 'fundingRate', '100');
}
