@@ -68,20 +68,20 @@ using CryptoPP::byte;
6868
6969namespace BfxAPI
7070{
71- // //////////////////////////////////////////////////////////////////////
72- // Global variables
73- // //////////////////////////////////////////////////////////////////////
74-
75- const auto API_URL = " https://api.bitfinex.com/v1" ;
76- const auto CURL_TIMEOUT = 30L ;
77- const auto CURL_DEBUG_VERBOSE = 0L ;
78- const auto WITHDRAWAL_CONF_FILE_PATH = " doc/withdraw.conf" ;
79-
8071
8172 class BitfinexAPI
8273 {
8374 public:
8475
76+ // //////////////////////////////////////////////////////////////////////
77+ // Class constants
78+ // //////////////////////////////////////////////////////////////////////
79+
80+ static constexpr auto API_URL = " https://api.bitfinex.com/v1" ;
81+ static constexpr auto CURL_TIMEOUT = 30L ;
82+ static constexpr auto CURL_DEBUG_VERBOSE = 0L ;
83+ static constexpr auto WITHDRAWAL_CONF_FILE_PATH = " doc/withdraw.conf" ;
84+
8585 // //////////////////////////////////////////////////////////////////////
8686 // Typedefs
8787 // //////////////////////////////////////////////////////////////////////
@@ -199,7 +199,7 @@ namespace BfxAPI
199199 const string getWDconfFilePath () const noexcept
200200 { return WDconfFilePath_; }
201201
202- const bfxERR & getBfxApiStatusCode () const noexcept
202+ const BfxClientErrors & getBfxApiStatusCode () const noexcept
203203 { return bfxApiStatusCode_; }
204204
205205 const CURLcode& getCurlStatusCode () const noexcept
@@ -454,7 +454,7 @@ namespace BfxAPI
454454 getTonce () + " \" " ;
455455
456456 // Add params from withdraw.conf
457- bfxERR code (parseWDconfParams (params));
457+ BfxClientErrors code (parseWDconfParams (params));
458458 if (code != noError)
459459 bfxApiStatusCode_ = code;
460460 else
@@ -925,14 +925,14 @@ namespace BfxAPI
925925 string APIurl_;
926926 string accessKey_, secretKey_;
927927 // dynamic and status variables
928- bfxERR bfxApiStatusCode_;
928+ BfxClientErrors bfxApiStatusCode_;
929929 string result_;
930930
931931 // //////////////////////////////////////////////////////////////////////
932932 // Utility private methods
933933 // //////////////////////////////////////////////////////////////////////
934934
935- bfxERR parseWDconfParams (string ¶ms)
935+ BfxClientErrors parseWDconfParams (string ¶ms)
936936 {
937937 using std::getline;
938938 using std::ifstream;
0 commit comments