mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Remove bfxapi/utils/flags.py file from bfxapi.utils sub-package.
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
import os
|
||||
|
||||
from bfxapi.client import Client, Constants
|
||||
from bfxapi.enums import FundingOfferType
|
||||
from bfxapi.utils.flags import calculate_offer_flags
|
||||
from bfxapi.enums import FundingOfferType, Flag
|
||||
|
||||
bfx = Client(
|
||||
REST_HOST=Constants.REST_HOST,
|
||||
@@ -18,7 +17,7 @@ notification = bfx.rest.auth.submit_funding_offer(
|
||||
amount="123.45",
|
||||
rate="0.001",
|
||||
period=2,
|
||||
flags=calculate_offer_flags(hidden=True)
|
||||
flags=Flag.HIDDEN
|
||||
)
|
||||
|
||||
print("Offer notification:", notification)
|
||||
|
||||
Reference in New Issue
Block a user