Integrate Bluefin v2 decentralized derivatives exchange#30
Merged
jorgeantonio21 merged 8 commits intoAtomaAI:mainfrom Feb 10, 2025
Merged
Integrate Bluefin v2 decentralized derivatives exchange#30jorgeantonio21 merged 8 commits intoAtomaAI:mainfrom
jorgeantonio21 merged 8 commits intoAtomaAI:mainfrom
Conversation
Contributor
Author
|
I have created a Readme to document this but here's how to utilise this -> |
Contributor
Author
|
@jorgeantonio21 please review |
fishonamos
approved these changes
Feb 10, 2025
fishonamos
approved these changes
Feb 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bluefin Protocol Integration
This PR provides integration of Atoma Saga with the Bluefin decentralized derivatives exchange on Sui Network.
Features
Tools
Order Management
place_bluefin_orderPlace a new order on Bluefin.
Parameters:
symbol(string, required): Trading pair symbolside(string, required): Order side (BUY/SELL)type(string, required): Order type (LIMIT/MARKET)quantity(number, required): Order quantityprice(number, optional): Order price (required for LIMIT orders)leverage(number, optional): Position leveragecancel_bluefin_orderCancel an existing order on Bluefin.
Parameters:
symbol(string, required): Trading pair symbolorder_id(string, optional): Order ID to cancelcancel_all(boolean, optional): Cancel all open ordersPosition Management
adjust_bluefin_positionAdjust position leverage on Bluefin.
Parameters:
symbol(string, required): Trading pair symbolleverage(number, required): New leverage valueadjust_bluefin_marginAdd or remove margin from a position.
Parameters:
symbol(string, required): Trading pair symbolamount(number, required): Amount to add/removeis_deposit(boolean, required): True for deposit, false for withdrawalMarket Data
get_bluefin_orderbookGet the orderbook for a trading pair.
Parameters:
symbol(string, required): Trading pair symbolget_bluefin_market_dataGet market data for a trading pair.
Parameters:
symbol(string, optional): Trading pair symbolUser Data
get_bluefin_user_positionsGet user's open positions.
Parameters:
symbol(string, optional): Trading pair symbolparent_address(string, optional): Parent addressget_bluefin_user_ordersGet user's orders.
Parameters:
symbol(string, optional): Trading pair symbolparent_address(string, optional): Parent addressUsage Example
Error Handling
All tools return responses in a standardized format:
Dependencies