Skip to content

Commit

Permalink
Merge pull request #511 from mraniki/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mraniki authored Sep 8, 2024
2 parents 83db1ca + 407bb64 commit 384d6d4
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 0 deletions.
100 changes: 100 additions & 0 deletions cefi/handler/fxcm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# """

# Fxcm client


# """


# from loguru import logger

# from .client import CexClient


# class FxcmHandler(CexClient):
# """
# library:

# Args:
# None

# Returns:
# None

# """

# def __init__(
# self,
# **kwargs,
# ):
# """
# Initialize the client

# """
# super().__init__(**kwargs)



# async def get_quote(self, instrument):
# """
# Return a quote for a instrument


# Args:
# cex
# instrument

# Returns:
# quote
# """
# pass

# async def get_account_balance(self):
# """
# return account balance

# Args:
# None

# Returns:
# balance

# """

# return 0

# async def get_account_position(self):
# """
# Return account position.
# of a given exchange

# Args:
# None

# Returns:
# position

# """


# return 0

# async def get_trading_asset_balance(self):
# """ """
# return 0

# async def execute_order(self, order_params):
# """
# Execute order

# Args:
# order_params (dict):
# action(str)
# instrument(str)
# quantity(int)

# Returns:
# trade_confirmation(dict)

# """
# pass
100 changes: 100 additions & 0 deletions cefi/handler/oanda.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# """

# Oanda client


# """


# from loguru import logger

# from .client import CexClient


# class OandaHandler(CexClient):
# """
# library:

# Args:
# None

# Returns:
# None

# """

# def __init__(
# self,
# **kwargs,
# ):
# """
# Initialize the client

# """
# super().__init__(**kwargs)



# async def get_quote(self, instrument):
# """
# Return a quote for a instrument


# Args:
# cex
# instrument

# Returns:
# quote
# """
# pass

# async def get_account_balance(self):
# """
# return account balance

# Args:
# None

# Returns:
# balance

# """

# return 0

# async def get_account_position(self):
# """
# Return account position.
# of a given exchange

# Args:
# None

# Returns:
# position

# """


# return 0

# async def get_trading_asset_balance(self):
# """ """
# return 0

# async def execute_order(self, order_params):
# """
# Execute order

# Args:
# order_params (dict):
# action(str)
# instrument(str)
# quantity(int)

# Returns:
# trade_confirmation(dict)

# """
# pass
100 changes: 100 additions & 0 deletions cefi/handler/schwab.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# """

# Schwab client


# """


# from loguru import logger

# from .client import CexClient


# class SchwabHandler(CexClient):
# """
# library:

# Args:
# None

# Returns:
# None

# """

# def __init__(
# self,
# **kwargs,
# ):
# """
# Initialize the client

# """
# super().__init__(**kwargs)



# async def get_quote(self, instrument):
# """
# Return a quote for a instrument


# Args:
# cex
# instrument

# Returns:
# quote
# """
# pass

# async def get_account_balance(self):
# """
# return account balance

# Args:
# None

# Returns:
# balance

# """

# return 0

# async def get_account_position(self):
# """
# Return account position.
# of a given exchange

# Args:
# None

# Returns:
# position

# """


# return 0

# async def get_trading_asset_balance(self):
# """ """
# return 0

# async def execute_order(self, order_params):
# """
# Execute order

# Args:
# order_params (dict):
# action(str)
# instrument(str)
# quantity(int)

# Returns:
# trade_confirmation(dict)

# """
# pass

0 comments on commit 384d6d4

Please sign in to comment.