mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-21 07:44:22 +01:00
refactoring - updated tests
This commit is contained in:
@@ -3,7 +3,8 @@ import sys
|
||||
import asyncio
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -3,7 +3,8 @@ import sys
|
||||
import asyncio
|
||||
import time
|
||||
sys.path.append('../../../')
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
from bfxapi.models import OrderType
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
|
||||
@@ -4,7 +4,8 @@ import asyncio
|
||||
import time
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -4,7 +4,8 @@ import asyncio
|
||||
import time
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving public data requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -3,7 +3,8 @@ import sys
|
||||
import asyncio
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving seed trades requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -2,7 +2,8 @@ import os
|
||||
import sys
|
||||
import asyncio
|
||||
sys.path.append('../../../')
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -3,7 +3,8 @@ import sys
|
||||
import asyncio
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -2,7 +2,8 @@ import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, Order, WS_HOST, REST_HOST
|
||||
from bfxapi import Client, Order
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -2,7 +2,8 @@ import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
bfx = Client(
|
||||
logLevel='DEBUG',
|
||||
|
||||
@@ -2,7 +2,8 @@ import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -3,7 +3,8 @@ import time
|
||||
from collections import OrderedDict
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving orderbook requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -10,7 +10,8 @@ sys.path.append('../../../')
|
||||
import asyncio
|
||||
from functools import partial
|
||||
import websockets as ws
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
import math
|
||||
import random
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving orderbook requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -2,7 +2,8 @@ import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, Order, WS_HOST, REST_HOST
|
||||
from bfxapi import Client, Order
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
bfx = Client(
|
||||
logLevel='DEBUG',
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving derivative status requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -2,7 +2,8 @@ import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving trades/candles requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving tickers requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, PUB_WS_HOST, PUB_REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import PUB_WS_HOST, PUB_REST_HOST
|
||||
|
||||
# Retrieving trades/candles requires public hosts
|
||||
bfx = Client(
|
||||
|
||||
@@ -2,7 +2,8 @@ import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
|
||||
from bfxapi import Client, Order, WS_HOST, REST_HOST
|
||||
from bfxapi import Client, Order
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import os
|
||||
import sys
|
||||
sys.path.append('../../../')
|
||||
from bfxapi import Client, WS_HOST, REST_HOST
|
||||
from bfxapi import Client
|
||||
from bfxapi.constants import WS_HOST, REST_HOST
|
||||
|
||||
API_KEY=os.getenv("BFX_KEY")
|
||||
API_SECRET=os.getenv("BFX_SECRET")
|
||||
|
||||
Reference in New Issue
Block a user