mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-18 22:34:21 +01:00
add currency endpoints
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
This commit is contained in:
@@ -369,4 +369,16 @@ class RestAuthenticatedEndpoints(Middleware):
|
||||
convert_currency=sub_data["convertCcy"],
|
||||
created=sub_data["created"]
|
||||
) for sub_data in self._POST("auth/r/ext/pay/settings/convert/list")
|
||||
]
|
||||
]
|
||||
|
||||
def add_currency_conversion(self, base_currency: str, convert_currency: str) -> bool:
|
||||
return bool(self._POST("auth/w/ext/pay/settings/convert/create", body={
|
||||
"baseCcy": base_currency,
|
||||
"convertCcy": convert_currency
|
||||
}))
|
||||
|
||||
def remove_currency_conversion(self, base_currency: str, convert_currency: str) -> bool:
|
||||
return bool(self._POST("auth/w/ext/pay/settings/convert/remove", body={
|
||||
"baseCcy": base_currency,
|
||||
"convertCcy": convert_currency
|
||||
}))
|
||||
Reference in New Issue
Block a user