Add python syntax check (#8651)
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Syntax Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
* Add python syntax check * Fix some python regression algorithms * Fixing more bugs
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
# limitations under the License.
|
||||
|
||||
from AlgorithmImports import *
|
||||
from System.Globalization import *
|
||||
|
||||
### <summary>
|
||||
### Live Trading Functionality Demonstration algorithm including SMS, Email and Web hook notifications.
|
||||
@@ -47,7 +46,7 @@ class LiveTradingFeaturesAlgorithm(QCAlgorithm):
|
||||
|
||||
|
||||
### New Bitcoin Data Event
|
||||
def on_data(Bitcoin, data):
|
||||
def on_data(self, Bitcoin, data):
|
||||
if self.live_mode:
|
||||
self.set_runtime_statistic('BTC', str(data.close))
|
||||
|
||||
@@ -94,7 +93,7 @@ class Bitcoin(PythonData):
|
||||
if is_live_mode:
|
||||
return SubscriptionDataSource("https://www.bitstamp.net/api/ticker/", SubscriptionTransportMedium.REST)
|
||||
|
||||
return SubscriptionDataSource("https://www.quandl.com/api/v3/datasets/BCHARTS/BITSTAMPUSD.csv?order=asc", SubscriptionTransportMedium.REMOTE_FILE)
|
||||
return SubscriptionDataSource("https://www.quandl.com/api/v3/datasets/BCHARTS/BITSTAMPUSD.csv?order=asc", SubscriptionTransportMedium.REMOTE_FILE)
|
||||
|
||||
|
||||
def reader(self, config, line, date, is_live_mode):
|
||||
|
||||
Reference in New Issue
Block a user