=begin
#BitMEX API

### REST API for the BitMEX Trading Platform  _If you are building automated tools, please subscribe to the_ _[BitMEX API RSS Feed](https://blog.bitmex.com/api_announcement/feed/) for changes. The feed will be updated_ _regularly and is the most reliable way to get downtime and update announcements._  [View Changelog](/app/apiChangelog)  -  #### Getting Started  Base URI: [https://www.bitmex.com/api/v1](/api/v1)  ##### Fetching Data  All REST endpoints are documented below. You can try out any query right from this interface.  Most table queries accept `count`, `start`, and `reverse` params. Set `reverse=true` to get rows newest-first.  Additional documentation regarding filters, timestamps, and authentication is available in [the main API documentation](/app/restAPI).  _All_ table data is available via the [Websocket](/app/wsAPI). We highly recommend using the socket if you want to have the quickest possible data without being subject to ratelimits.  ##### Return Types  By default, all data is returned as JSON. Send `?_format=csv` to get CSV data or `?_format=xml` to get XML data.  ##### Trade Data Queries  _This is only a small subset of what is available, to get you started._  Fill in the parameters and click the `Try it out!` button to try any of these queries.  - [Pricing Data](#!/Quote/Quote_get)  - [Trade Data](#!/Trade/Trade_get)  - [OrderBook Data](#!/OrderBook/OrderBook_getL2)  - [Settlement Data](#!/Settlement/Settlement_get)  - [Exchange Statistics](#!/Stats/Stats_history)  Every function of the BitMEX.com platform is exposed here and documented. Many more functions are available.  ##### Swagger Specification  [⇩ Download Swagger JSON](swagger.json)  -  ## All API Endpoints  Click to expand a section. 

OpenAPI spec version: 1.2.0
Contact: support@bitmex.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.42-SNAPSHOT

=end

require 'spec_helper'
require 'json'

# Unit tests for SwaggerClient::UserApi
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'UserApi' do
  before do
    # run before each test
    @instance = SwaggerClient::UserApi.new
  end

  after do
    # run after each test
  end

  describe 'test an instance of UserApi' do
    it 'should create an instance of UserApi' do
      expect(@instance).to be_instance_of(SwaggerClient::UserApi)
    end
  end

  # unit tests for user_cancel_pending_withdrawal
  # Cancel pending withdrawal
  # @param transact_id 
  # @param [Hash] opts the optional parameters
  # @return [Object]
  describe 'user_cancel_pending_withdrawal test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_cancel_withdrawal
  # Cancel a withdrawal.
  # @param token 
  # @param [Hash] opts the optional parameters
  # @return [Transaction]
  describe 'user_cancel_withdrawal test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_check_referral_code
  # Check if a referral code is valid.
  # If the code is valid, responds with the referral code&#39;s discount (e.g. &#x60;0.1&#x60; for 10%). Otherwise, will return a 404 or 451 if invalid.
  # @param [Hash] opts the optional parameters
  # @option opts [String] :referral_code 
  # @return [Object]
  describe 'user_check_referral_code test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_communication_token
  # Register your communication token for mobile clients
  # @param token 
  # @param platform_agent 
  # @param [Hash] opts the optional parameters
  # @return [Array<CommunicationToken>]
  describe 'user_communication_token test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_confirm
  # Confirm your email address with a token.
  # @param token 
  # @param [Hash] opts the optional parameters
  # @return [AccessToken]
  describe 'user_confirm test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_confirm_withdrawal
  # Confirm a withdrawal.
  # @param token 
  # @param [Hash] opts the optional parameters
  # @return [Transaction]
  describe 'user_confirm_withdrawal test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_create_sub_account
  # Creates a new sub-account.
  # @param account_name 
  # @param [Hash] opts the optional parameters
  # @return [Object]
  describe 'user_create_sub_account test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_create_unstaking_requests
  # Create unstaking request
  # @param symbol 
  # @param amount 
  # @param [Hash] opts the optional parameters
  # @return [Object]
  describe 'user_create_unstaking_requests test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_delete_unstaking_requests
  # Cancel unstaking request
  # @param redemption_id 
  # @param [Hash] opts the optional parameters
  # @return [Object]
  describe 'user_delete_unstaking_requests test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get
  # Get your user model.
  # @param [Hash] opts the optional parameters
  # @return [User]
  describe 'user_get test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_affiliate_status
  # Get your current affiliate/referral status.
  # @param [Hash] opts the optional parameters
  # @option opts [String] :currency Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;. For all currencies specify \&quot;all\&quot;
  # @return [Affiliate]
  describe 'user_get_affiliate_status test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_commission
  # Get your account&#39;s commission status.
  # @param [Hash] opts the optional parameters
  # @return [UserCommissionsBySymbol]
  describe 'user_get_commission test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_csa
  # Get your account&#39;s CSA status.
  # @param [Hash] opts the optional parameters
  # @return [CollateralSupportAgreement]
  describe 'user_get_csa test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_deposit_address
  # Get a deposit address.
  # @param currency Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;
  # @param network The &#x60;network&#x60; parameter is used to indicate which blockchain you would like to deposit from. The acceptable value in the &#x60;network&#x60; parameter for each currency can be found from &#x60;networks.asset&#x60; from &#x60;GET /wallet/assets&#x60;.
  # @param [Hash] opts the optional parameters
  # @return [String]
  describe 'user_get_deposit_address test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_deposit_address_information
  # Get a deposit address.
  # @param currency Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;
  # @param network The &#x60;network&#x60; parameter is used to indicate which blockchain you would like to deposit from. The acceptable value in the &#x60;network&#x60; parameter for each currency can be found from &#x60;networks.asset&#x60; from &#x60;GET /wallet/assets&#x60;.
  # @param [Hash] opts the optional parameters
  # @return [DepositAddress]
  describe 'user_get_deposit_address_information test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_execution_history
  # Get the execution history by day.
  # @param symbol 
  # @param timestamp 
  # @param [Hash] opts the optional parameters
  # @return [Array<Execution>]
  describe 'user_get_execution_history test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_margin
  # Get your account&#39;s margin status. Send a currency of \&quot;all\&quot; to receive an array of all supported currencies.
  # @param [Hash] opts the optional parameters
  # @option opts [String] :currency Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;. For all currencies specify \&quot;all\&quot;
  # @return [Margin]
  describe 'user_get_margin test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_quote_fill_ratio
  # Get 7 days worth of Quote Fill Ratio statistics.
  # @param [Hash] opts the optional parameters
  # @option opts [Float] :target_account_id AccountId to get quote fill ratio for, must be a paired account with main user. Can be wildcard * to get all accounts linked to the authenticated user
  # @return [QuoteFillRatio]
  describe 'user_get_quote_fill_ratio test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_quote_value_ratio
  # Get Quote Value Ratio statistics over the last 3 days
  # @param [Hash] opts the optional parameters
  # @option opts [Float] :target_account_id AccountId to get quote value ratio for, must be a paired account with main user. Can be wildcard * to get all accounts linked to the authenticated user
  # @return [QuoteValueRatio]
  describe 'user_get_quote_value_ratio test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_staking
  # Get the current user staking amount.
  # @param [Hash] opts the optional parameters
  # @option opts [String] :currency 
  # @return [Array<StakingRecord>]
  describe 'user_get_staking test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_staking_instruments
  # List staking instruments
  # @param [Hash] opts the optional parameters
  # @option opts [String] :symbol 
  # @option opts [String] :currency 
  # @return [Array<XAny>]
  describe 'user_get_staking_instruments test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_staking_tiers
  # List staking tiers for a given currency
  # @param currency 
  # @param [Hash] opts the optional parameters
  # @return [Array<XAny>]
  describe 'user_get_staking_tiers test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_trading_volume
  # Get your 30 days USD average trading volume
  # @param [Hash] opts the optional parameters
  # @return [Array<TradingVolume>]
  describe 'user_get_trading_volume test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_unstaking_requests
  # Get the current user unstaking requests
  # @param status 
  # @param [Hash] opts the optional parameters
  # @return [Array<StakingRecord>]
  describe 'user_get_unstaking_requests test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_wallet
  # Get your current wallet information.
  # @param [Hash] opts the optional parameters
  # @option opts [String] :currency Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;. For all currencies specify \&quot;all\&quot;
  # @return [Wallet]
  describe 'user_get_wallet test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_wallet_history
  # Get a history of all of your wallet transactions (deposits, withdrawals, PNL).
  # @param [Hash] opts the optional parameters
  # @option opts [String] :currency Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;. For all currencies specify \&quot;all\&quot;
  # @option opts [Float] :count Number of results to fetch. Fetch results from start to start + count. Max: 10,000 rows.
  # @option opts [Float] :start Starting point for results, integer. Default 0.
  # @option opts [Float] :target_account_id AccountId to view the history of, must be a paired account with the authorised user requesting the history.
  # @option opts [BOOLEAN] :reverse Start from the latest transaction record. Default true.
  # @return [Array<Transaction>]
  describe 'user_get_wallet_history test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_wallet_summary
  # Get a summary of all of your wallet transactions (deposits, withdrawals, PNL).
  # Provides an aggregated view of transactions, by transaction type, over a specific time period.
  # @param [Hash] opts the optional parameters
  # @option opts [String] :currency Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;. For all currencies specify \&quot;all\&quot;
  # @option opts [DateTime] :start_time Start time for the summary
  # @option opts [DateTime] :end_time End time for the summary
  # @return [Array<WalletSummaryRecord>]
  describe 'user_get_wallet_summary test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_get_wallet_transfer_accounts
  # Get the list of accounts you can transfer funds between.
  # @param [Hash] opts the optional parameters
  # @return [Array<XAny>]
  describe 'user_get_wallet_transfer_accounts test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_logout
  # Log out of BitMEX.
  # @param [Hash] opts the optional parameters
  # @return [nil]
  describe 'user_logout test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_request_withdrawal
  # Request a withdrawal to an external wallet.
  # This will send a confirmation email to the email address on record.
  # @param currency Currency you&#39;re withdrawing. Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;
  # @param network The &#x60;network&#x60; parameter is used to indicate which blockchain you would like to withdraw from. The acceptable value in the &#x60;network&#x60; parameter for each currency can be found from &#x60;networks.asset&#x60; from &#x60;GET /wallet/assets&#x60;.
  # @param amount Amount of withdrawal currency.
  # @param [Hash] opts the optional parameters
  # @option opts [String] :otp_token 2FA token. Required for all external withdrawals unless the address has skip2FA in addressbook.
  # @option opts [String] :address Destination Address. One of &#x60;address&#x60;, &#x60;addressId&#x60;, &#x60;targetUserId&#x60; has to be specified.
  # @option opts [String] :memo Destination Memo. If &#x60;address&#x60;, is specified, Destination Memo can also be specified
  # @option opts [Float] :address_id ID of the Destination Address. One of &#x60;address&#x60;, &#x60;addressId&#x60;, &#x60;targetUserId&#x60; has to be specified.
  # @option opts [Float] :target_user_id ID of the Target User. One of &#x60;address&#x60;, &#x60;addressId&#x60;, &#x60;targetUserId&#x60; has to be specified.
  # @option opts [Float] :fee Network fee for Bitcoin withdrawals. If not specified, a default value will be calculated based on Bitcoin network conditions. You will have a chance to confirm this via email.
  # @option opts [String] :text Optional annotation, e.g. &#39;Transfer to home wallet&#39;.
  # @return [Transaction]
  describe 'user_request_withdrawal test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_save_preferences
  # Save user preferences.
  # @param prefs 
  # @param [Hash] opts the optional parameters
  # @option opts [BOOLEAN] :overwrite If true, will overwrite all existing preferences.
  # @return [User]
  describe 'user_save_preferences test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_update_sub_account
  # Updates the sub-account name.
  # @param target_account_id 
  # @param account_name 
  # @param [Hash] opts the optional parameters
  # @return [Object]
  describe 'user_update_sub_account test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

  # unit tests for user_wallet_transfer
  # Execute a transfer to a paired account.
  # This will send a confirmation email to the email address on record.
  # @param currency Currency you&#39;re transfering. Any currency. For all currencies, see &lt;a href&#x3D;\&quot;#!/Wallet/Wallet_getAssetsConfig\&quot;&gt;asset config endpoint&lt;/a&gt;
  # @param amount Amount of transfer.
  # @param target_account_id AccountId to send the transfer to, must be a paired account with the user sending the transfer.
  # @param [Hash] opts the optional parameters
  # @option opts [Float] :from_account_id AccountID to send the transfer from. Must be paired account with the authenticated user.
  # @return [Transaction]
  describe 'user_wallet_transfer test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end
