mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
add currency endpoints
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
This commit is contained in:
@@ -370,3 +370,15 @@ class RestAuthenticatedEndpoints(Middleware):
|
|||||||
created=sub_data["created"]
|
created=sub_data["created"]
|
||||||
) for sub_data in self._POST("auth/r/ext/pay/settings/convert/list")
|
) 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