Skip to content

Commit

Permalink
modified
Browse files Browse the repository at this point in the history
  • Loading branch information
TOSUKUi committed Sep 26, 2018
1 parent 35e507a commit 6a5f066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function orderFlow(api, op, config, statuses){
var sheet = spreadSheet.getSheetByName("戦略ステータス")
//var numPyramidding = sheet.getRange(2,1).getValue()
var numPyramidding = statuses["ピラミッディング数"]
if(numPyramidding.isEmpty()){numPyramidding = 0}
var pyramidding = config["最大ピラミッディング"]
var response = api.getPosition(config["ticker"])
var position = JSON.parse(response)
Expand Down
1 change: 1 addition & 0 deletions src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function onOpen(){
}

function trigger(){
var triggers = ScriptApp.getProjectTriggers();
var ss = SpreadsheetApp.getActive()
var sheet = ss.getSheetByName("bot稼働状況")
var status = sheet.getRange(1,1)
Expand Down

0 comments on commit 6a5f066

Please sign in to comment.