Merge bfxapi.rest.types and bfxapi.websocket.types in bfxapi.tests sub-package.

This commit is contained in:
Davide Casale
2023-04-20 03:44:13 +02:00
parent 34a1b0099e
commit 0f9fa1bf6a
32 changed files with 164 additions and 759 deletions

View File

@@ -4,7 +4,7 @@ import os
from bfxapi import Client, REST_HOST
from bfxapi.rest.types import Notification, PositionClaim
from bfxapi.types import Notification, PositionClaim
bfx = Client(
rest_host=REST_HOST,

View File

@@ -2,11 +2,12 @@
import os
from typing import List
from bfxapi import Client, REST_HOST
from bfxapi.rest.types import List, Wallet, Transfer, \
DepositAddress, LightningNetworkInvoice, Withdrawal, \
Notification
from bfxapi.types import Wallet, Transfer, DepositAddress, \
LightningNetworkInvoice, Withdrawal, Notification
bfx = Client(
rest_host=REST_HOST,

View File

@@ -4,7 +4,7 @@ import os
from bfxapi import Client, REST_HOST
from bfxapi.rest.types import DerivativePositionCollateral, DerivativePositionCollateralLimits
from bfxapi.types import DerivativePositionCollateral, DerivativePositionCollateralLimits
bfx = Client(
rest_host=REST_HOST,

View File

@@ -3,8 +3,8 @@
import os
from bfxapi import Client, REST_HOST
from bfxapi.types import Notification, FundingOffer
from bfxapi.enums import FundingOfferType, Flag
from bfxapi.rest.types import Notification, FundingOffer
bfx = Client(
rest_host=REST_HOST,

View File

@@ -3,8 +3,8 @@
import os
from bfxapi import Client, REST_HOST
from bfxapi.types import Notification, Order
from bfxapi.enums import OrderType, Flag
from bfxapi.rest.types import Notification, Order
bfx = Client(
rest_host=REST_HOST,

View File

@@ -2,9 +2,11 @@
import os
from typing import List
from bfxapi import Client, REST_HOST
from bfxapi.rest.types import List, FundingLoan, Notification
from bfxapi.types import FundingLoan, Notification
bfx = Client(
rest_host=REST_HOST,

View File

@@ -4,7 +4,7 @@ import os
from bfxapi import Client, REST_HOST
from bfxapi.rest.types import InvoiceSubmission
from bfxapi.types import InvoiceSubmission
bfx = Client(
rest_host=REST_HOST,

View File

@@ -1,8 +1,10 @@
# python -c "import examples.rest.public.book"
from typing import List
from bfxapi import Client, PUB_REST_HOST
from bfxapi.rest.types import List, TradingPairBook, TradingPairRawBook, \
from bfxapi.types import TradingPairBook, TradingPairRawBook, \
FundingCurrencyBook, FundingCurrencyRawBook
bfx = Client(rest_host=PUB_REST_HOST)

View File

@@ -2,9 +2,11 @@
import datetime
from typing import List
from bfxapi import Client, PUB_REST_HOST
from bfxapi.rest.types import List, PulseMessage, PulseProfile
from bfxapi.types import PulseMessage, PulseProfile
bfx = Client(rest_host=PUB_REST_HOST)

View File

@@ -2,7 +2,7 @@
from bfxapi import Client, PUB_REST_HOST
from bfxapi.rest.types import TradingMarketAveragePrice, FundingMarketAveragePrice, FxRate
from bfxapi.types import TradingMarketAveragePrice, FundingMarketAveragePrice, FxRate
bfx = Client(rest_host=PUB_REST_HOST)

View File

@@ -1,8 +1,10 @@
# python -c "import examples.rest.public.trades"
from typing import List
from bfxapi import Client, PUB_REST_HOST
from bfxapi.types import TradingPairTrade, FundingCurrencyTrade
from bfxapi.rest.enums import Sort
from bfxapi.rest.types import List, TradingPairTrade, FundingCurrencyTrade
bfx = Client(rest_host=PUB_REST_HOST)