Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

# on boards user on bluefin. Must be set to true for firs time use
Expand Down Expand Up @@ -126,7 +126,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

await client.init(True)
Expand Down Expand Up @@ -179,7 +179,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)
await client.init(True)
# make connection with bluefin exchange
Expand Down Expand Up @@ -220,7 +220,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

await client.init(True)
Expand Down
2 changes: 1 addition & 1 deletion examples/1.initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

# Initializing client for the private key provided. The second argument api_token is optional
Expand Down
2 changes: 1 addition & 1 deletion examples/19.Generate_readonly_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

# initialize the client
Expand Down
2 changes: 1 addition & 1 deletion examples/2.user_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

# initialize the client
Expand Down
2 changes: 1 addition & 1 deletion examples/3.balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

# initialize the client
Expand Down
2 changes: 1 addition & 1 deletion examples/4.placing_orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

await client.init(True)
Expand Down
2 changes: 1 addition & 1 deletion examples/5.adjusting_leverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

await client.init(True)
Expand Down
9 changes: 2 additions & 7 deletions examples/contract_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

sys.path.append(os.getcwd() + "/src/")
import base64
from bluefin_client_sui.utilities import *
from bluefin_v2_client.utilities import *
from config import TEST_ACCT_KEY, TEST_NETWORK
from bluefin_v2_client import (
BluefinClient,
Expand All @@ -22,7 +22,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)
await client.init(True)

Expand All @@ -35,11 +35,6 @@ async def main():
seed = "negative repeat fold noodle symptom spirit spend trophy merge ethics math erupt"
sui_wallet = SuiWallet(seed=seed)

# private_key=mnemonicToPrivateKey(seed)
# privateKeyBytes=private_key.ToBytes()
# publicKey=privateKeyToPublicKey(private_key)
# publicKeyBytes=publicKey.ToBytes()

result = mysigner.sign_tx(dec_msg, sui_wallet)
print(result)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bluefin_v2_client"
version = "2.0.4"
version = "2.1.0"
description = "Library to interact with Bluefin exchange protocol including its off-chain api-gateway and on-chain contracts"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
1 change: 0 additions & 1 deletion src/bluefin_v2_client/enumerations.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class MARKET_SYMBOLS(Enum):


class TIME_IN_FORCE(Enum):
FILL_OR_KILL = "FOK"
IMMEDIATE_OR_CANCEL = "IOC"
GOOD_TILL_TIME = "GTT"

Expand Down
2 changes: 1 addition & 1 deletion src/bluefin_v2_client/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class OrderSignatureResponse(RequiredOrderFields):


class PlaceOrderRequest(OrderSignatureResponse):
timeInForce: TIME_IN_FORCE # FOK/IOC/GTT by default all orders are GTT
timeInForce: TIME_IN_FORCE # IOC/GTT by default all orders are GTT
postOnly: bool # true/false, default is true
cancelOnRevert: bool # if true, the order will be cancelled in case of on-chain settlement error, default is false
clientId: str # id of the client
Expand Down
2 changes: 1 addition & 1 deletion src/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def main():
client = BluefinClient(
True, # agree to terms and conditions
Networks[TEST_NETWORK], # network to connect with
TEST_ACCT_KEY, # private key of wallet
TEST_ACCT_KEY, # seed phrase of the wallet
)

# Initializing client for the private key provided. The second argument api_token is optional
Expand Down