mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Apply pylint's linting rules to examples/rest/merchant/*.py.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import os
|
||||
|
||||
from bfxapi import Client, REST_HOST
|
||||
from bfxapi import Client, REST_HOST
|
||||
|
||||
from bfxapi.rest.enums import MerchantSettingsKey
|
||||
|
||||
@@ -15,7 +15,7 @@ bfx = Client(
|
||||
if not bfx.rest.merchant.set_merchant_settings(MerchantSettingsKey.RECOMMEND_STORE, 1):
|
||||
print(f"Cannot set <{MerchantSettingsKey.RECOMMEND_STORE}> to <1>.")
|
||||
|
||||
print(f"The current <{MerchantSettingsKey.PREFERRED_FIAT}> value is:",
|
||||
print(f"The current <{MerchantSettingsKey.PREFERRED_FIAT}> value is:",
|
||||
bfx.rest.merchant.get_merchant_settings(MerchantSettingsKey.PREFERRED_FIAT))
|
||||
|
||||
settings = bfx.rest.merchant.list_merchant_settings([
|
||||
@@ -25,4 +25,4 @@ settings = bfx.rest.merchant.list_merchant_settings([
|
||||
])
|
||||
|
||||
for key, value in settings.items():
|
||||
print(f"<{key}>:", value)
|
||||
print(f"<{key}>:", value)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import os
|
||||
|
||||
from bfxapi import Client, REST_HOST
|
||||
from bfxapi import Client, REST_HOST
|
||||
|
||||
from bfxapi.rest.types import InvoiceSubmission
|
||||
|
||||
@@ -42,4 +42,4 @@ print(bfx.rest.merchant.complete_invoice(
|
||||
|
||||
print(bfx.rest.merchant.get_invoices(limit=25))
|
||||
|
||||
print(bfx.rest.merchant.get_invoices_paginated(page=1, page_size=60, sort="asc", sort_field="t"))
|
||||
print(bfx.rest.merchant.get_invoices_paginated(page=1, page_size=60, sort="asc", sort_field="t"))
|
||||
|
||||
Reference in New Issue
Block a user