# Load the gem
require 'tradewatch'
# Setup authorization
Tradewatch.configure do |config|
# Configure API key authorization: api_key_query
config.api_key['api_key_query'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['api_key_query'] = 'Bearer'
end
api_instance = Tradewatch::AccountApi.new
limit = 56 # Integer |
interval = Tradewatch::AccountUsageStatisticsInterval::1H # AccountUsageStatisticsInterval |
begin
#Usage statistics
result = api_instance.get_usage(limit, interval)
p result
rescue Tradewatch::ApiError => e
puts "Exception when calling AccountApi->get_usage: #{e}"
end