Skip to content

Commit

Permalink
v4 edits and readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ozdemirozcelik committed Jan 5, 2023
1 parent 8ecf51d commit 972ed0c
Show file tree
Hide file tree
Showing 11 changed files with 1,214 additions and 162 deletions.
282 changes: 164 additions & 118 deletions README.md

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,36 +188,36 @@ def my_revoked_token_callback(jwt_header, jwt_payload):

# Resource definitions (Start)

api.add_resource(SignalWebhook, "/v3/webhook")
api.add_resource(SignalUpdateOrder, "/v3/signal/updateorder")
api.add_resource(SignalList, "/v3/signals/<string:number_of_items>")
api.add_resource(SignalWebhook, "/v4/webhook")
api.add_resource(SignalUpdateOrder, "/v4/signal/updateorder")
api.add_resource(SignalList, "/v4/signals/<string:number_of_items>")
api.add_resource(
SignalListStatus,
"/v3/signals/status/<string:order_status>/<string:number_of_items>",
"/v4/signals/status/<string:order_status>/<string:number_of_items>",
)
api.add_resource(
SignalListTicker, "/v3/signals/ticker/<string:ticker_name>/<string:number_of_items>"
SignalListTicker, "/v4/signals/ticker/<string:ticker_name>/<string:number_of_items>"
)
api.add_resource(Signal, "/v3/signal/<string:rowid>")

api.add_resource(PairRegister, "/v3/regpair")
api.add_resource(PairList, "/v3/pairs/<string:number_of_items>")
api.add_resource(Pair, "/v3/pair/<string:name>")

api.add_resource(TickerRegister, "/v3/regticker")
api.add_resource(TickerUpdatePNL, "/v3/ticker/updatepnl")
api.add_resource(TickerList, "/v3/tickers/<string:number_of_items>")
api.add_resource(Ticker, "/v3/ticker/<string:symbol>")

api.add_resource(UserRegister, "/v3/reguser")
api.add_resource(UserList, "/v3/users/<string:number_of_users>")
api.add_resource(User, "/v3/user/<string:username>")
api.add_resource(UserLogin, "/v3/login")
api.add_resource(UserLogout, "/v3/logout")
api.add_resource(TokenRefresh, "/v3/refresh")

api.add_resource(PNLRegister, "/v3/regpnl")
api.add_resource(PNLList, "/v3/pnl/<string:number_of_items>")
api.add_resource(Signal, "/v4/signal/<string:rowid>")

api.add_resource(PairRegister, "/v4/regpair")
api.add_resource(PairList, "/v4/pairs/<string:number_of_items>")
api.add_resource(Pair, "/v4/pair/<string:name>")

api.add_resource(TickerRegister, "/v4/regticker")
api.add_resource(TickerUpdatePNL, "/v4/ticker/updatepnl")
api.add_resource(TickerList, "/v4/tickers/<string:number_of_items>")
api.add_resource(Ticker, "/v4/ticker/<string:symbol>")

api.add_resource(UserRegister, "/v4/reguser")
api.add_resource(UserList, "/v4/users/<string:number_of_users>")
api.add_resource(User, "/v4/user/<string:username>")
api.add_resource(UserLogin, "/v4/login")
api.add_resource(UserLogout, "/v4/logout")
api.add_resource(TokenRefresh, "/v4/refresh")

api.add_resource(PNLRegister, "/v4/regpnl")
api.add_resource(PNLList, "/v4/pnl/<string:number_of_items>")


# Resource definitions (End)
Expand Down
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ MAIL_BODY : waiting orders-possible server problem
ENABLE_SMA_CALC = True
# calculate 20D moving average in every x minutes
# data is from yahoo finance, check for rate limitations: https://pypi.org/project/yfinance/
SMA_CALC_PERIOD = 5
SMA_CALC_PERIOD = 20


Loading

0 comments on commit 972ed0c

Please sign in to comment.