text: #ifndef BITFINEX_H
  #define BITFINEX_H
  
  #include "../quote_t.h"
  #include <string>
  
  struct json_t;
  struct Parameters;
  
  namespace Bitfinex {
  
  quote_t getQuote(Parameters& params);
  
  double getAvail(Parameters& params, std::string currency);
  
  std::string sendLongOrder(Parameters& params, std::string direction, double quantity, double price);
  
  std::string sendShortOrder(Parameters& params, std::string direction, double quantity, double price);
  
  std::string sendOrder(Parameters& params, std::string direction, double quantity, double price);
  
  bool isOrderComplete(Parameters& params, std::string orderId);
  
  double getActivePos(Parameters& params);
  
  double getLimitPrice(Parameters& params, double volume, bool isBid);
  
  json_t* authRequest(Parameters &params, std::string request, std::string options);
  
  }
  
  #endif
  