Skip to content

Commit

Permalink
update realtime examples
Browse files Browse the repository at this point in the history
  • Loading branch information
prodipta committed Jan 11, 2021
1 parent fb77b9f commit 124ae51
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions realtime/FOREX_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
Dataset: Not applicable
Note: this works in blueshift live version only!!!
"""
########################################################################
# PLACING TRADE REALTIME CAN SEND TOO MANY TRADES, PLEASE CEHCK YOUR
# STRATEGY LOGIC CAREFULLY. TARGETTING FUNCTION DOES NOT CHECK FOR
# PENDING ORDERS SO MAY NOT WORK AS EXPECTED IF TRADES ARE PLACED
# AT A HIGH RATE. USE AN ON/OFF VARIABLE TO CONTROL PLACING OF TRADES.
# THE FOLLOWING EXAMPLES DO NOT PLACE REPEATED TRADES IN THE HANDLER.
########################################################################

from blueshift.api import (symbol, order_target, get_datetime, terminate,
on_data, on_trade, off_data, off_trade)
Expand Down
7 changes: 7 additions & 0 deletions realtime/NSE_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
Dataset: Not applicable
Note: this works in blueshift live version only!!!
"""
########################################################################
# PLACING TRADE REALTIME CAN SEND TOO MANY TRADES, PLEASE CEHCK YOUR
# STRATEGY LOGIC CAREFULLY. TARGETTING FUNCTION DOES NOT CHECK FOR
# PENDING ORDERS SO MAY NOT WORK AS EXPECTED IF TRADES ARE PLACED
# AT A HIGH RATE. USE AN ON/OFF VARIABLE TO CONTROL PLACING OF TRADES.
# THE FOLLOWING EXAMPLES DO NOT PLACE REPEATED TRADES IN THE HANDLER.
########################################################################

from blueshift.api import symbol, order_target, get_datetime, terminate
from blueshift.api import on_data, off_data
Expand Down
7 changes: 7 additions & 0 deletions realtime/NYSE_realtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
Dataset: Not applicable
Note: this works in blueshift live version only!!!
"""
########################################################################
# PLACING TRADE REALTIME CAN SEND TOO MANY TRADES, PLEASE CEHCK YOUR
# STRATEGY LOGIC CAREFULLY. TARGETTING FUNCTION DOES NOT CHECK FOR
# PENDING ORDERS SO MAY NOT WORK AS EXPECTED IF TRADES ARE PLACED
# AT A HIGH RATE. USE AN ON/OFF VARIABLE TO CONTROL PLACING OF TRADES.
# THE FOLLOWING EXAMPLES DO NOT PLACE REPEATED TRADES IN THE HANDLER.
########################################################################

from functools import partial
from blueshift.api import (symbol, order_target, get_datetime, terminate,
Expand Down

0 comments on commit 124ae51

Please sign in to comment.