This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = require('lodash') | |
const rp = require('request-promise') | |
const Promise = require('bluebird') | |
const rpOptions = { | |
uri: 'seznam.cz', | |
uri: '...', | |
// some headers, get params? | |
json: true // <- convert it automatically to JSON | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://weworkremotely.com/jobs/3115-driven-javascript-node-js-developer | |
https://angel.co/jan-juna | |
https://stackoverflow.com/jobs?searchTerm=node.js&type=contract&allowsremote=true | |
https://www.facebook.com/ | |
https://www.dropurpin.com/ | |
https://news.ycombinator.com/jobs | |
http://www.devgurus.io/ | |
https://www.startupjobs.cz/nabidka/6918/node-js-developer?utm_source=facebook&utm_medium=ad-auto&utm_content=6918&utm_campaign=2093 | |
https://www.dropurpin.com/apply-now/ | |
http://x-team.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://weworkremotely.com/jobs/3115-driven-javascript-node-js-developer | |
https://angel.co/jan-juna | |
https://stackoverflow.com/jobs?searchTerm=node.js&type=contract&allowsremote=true | |
https://www.facebook.com/ | |
https://www.dropurpin.com/ | |
https://news.ycombinator.com/jobs | |
http://www.devgurus.io/ | |
https://www.startupjobs.cz/nabidka/6918/node-js-developer?utm_source=facebook&utm_medium=ad-auto&utm_content=6918&utm_campaign=2093 | |
https://www.dropurpin.com/apply-now/ | |
http://x-team.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=2 | |
strategy("Backtesting Period Selector | [pbergden]", shorttitle="Backtesting Period Selector", overlay=true) | |
////////////////////////////////////////////////////////////////////// | |
// Date:2016.06.01 | |
// Author: pbergden | |
// Version: 0.1 | |
// Description: A 'component' which simplifies selecting backtesting period | |
////////////////////////////////////////////////////////////////////// |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Ticker","Amnt (scale)","Open date","O. Price","Close date","C. Price","Profit/Loss" | |
"CELG","88 (2)","Oct 5, 2017","$12,269.75 ($139.43)","Oct 11, 2017","$12,281.02 ($139.56)","$11.27 | 0.09%" | |
"UPS","105 (2)","Oct 6, 2017","$12,310.70 ($117.24)","Oct 10, 2017","$12,394.78 ($118.05)","$84.07 | 0.68%" | |
"CVS","51 (1)","Oct 4, 2017","$4,085.59 ($80.11)","Oct 5, 2017","$4,121.08 ($80.81)","$35.49 | 0.87%" | |
"ACN","93 (2)","Oct 2, 2017","$12,517.34 ($134.60)","Oct 5, 2017","$12,657.33 ($136.10)","$139.99 | 1.12%" | |
"PM","365 (4)","Sep 20, 2017","$41,002.39 ($112.34)","Oct 4, 2017","$40,689.21 ($111.48)","($313.18) | -0.76%" | |
"MRK","194 (2)","Sep 28, 2017","$12,433.34 ($64.09)","Oct 4, 2017","$12,529.45 ($64.58)","$96.11 | 0.77%" | |
"DUK","147 (2)","Sep 22, 2017","$12,359.90 ($84.08)","Oct 4, 2017","$12,411.68 ($84.43)","$51.78 | 0.42%" | |
"WMT","54 (1)","Sep 29, 2017","$4,216.24 ($78.08)","Oct 3, 2017","$4,278.50 ($79.23)","$62.26 | 1.48%" | |
"JNJ","95 (2)","Sep 27, 2017","$12,299.89 ($129.47)","Oct 2, 2017","$12,468.70 ($131.25) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | Ticker | Amnt (pieces) | Open date | O. Price | Close date | C. Price | Profit/Loss | |
---|---|---|---|---|---|---|---|---|
484 | AMGN | 76 (3) | Oct 30, 2017 | $13,282.76 ($174.77) | Nov 1, 2017 | $13,348.64 ($175.64) | $65.88 | 0.50% | |
482 | AMGN | 50 (2) | Oct 27, 2017 | $8,755.43 ($175.11) | Nov 1, 2017 | $8,782.00 ($175.64) | $26.57 | 0.30% | |
481 | AMGN | 25 (1) | Oct 26, 2017 | $4,419.50 ($176.78) | Nov 1, 2017 | $4,391.00 ($175.64) | ($28.50) | -0.64% | |
477 | CL | 246 (4) | Oct 24, 2017 | $17,666.27 ($71.81) | Nov 1, 2017 | $17,362.88 ($70.58) | ($303.39) | -1.72% | |
473 | CL | 182 (3) | Oct 23, 2017 | $13,143.22 ($72.22) | Nov 1, 2017 | $12,845.71 ($70.58) | ($297.52) | -2.26% | |
470 | CL | 118 (2) | Oct 20, 2017 | $8,524.14 ($72.24) | Nov 1, 2017 | $8,328.53 ($70.58) | ($195.61) | -2.29% | |
468 | CL | 58 (1) | Oct 19, 2017 | $4,241.38 ($73.13) | Nov 1, 2017 | $4,093.69 ($70.58) | ($147.69) | -3.48% | |
476 | CHTR | 25 (2) | Oct 24, 2017 | $8,501.72 ($340.07) | Oct 31, 2017 | $8,352.41 ($334.10) | ($149.31) | -1.76% | |
475 | CHTR | 12 (1) | Oct 23, 2017 | $4,137.04 ($344.75) | Oct 31, 2017 | $4,009.16 ($334.10) | ($127.88) | -3.09% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
error: [], | |
result: { | |
BCHEUR: { | |
altname: 'BCHEUR', | |
aclass_base: 'currency', | |
base: 'BCH', | |
aclass_quote: 'currency', | |
quote: 'ZEUR', | |
lot: 'unit', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ticker | Amnt (scale) | Open date | O. Price | Close date | C. Price | Profit/Loss | |
---|---|---|---|---|---|---|---|
LLY | 156 (2) | Jan 23, 2018 | $13,161.12 ($84.37) | Jan 25, 2018 | $13,255.88 ($84.97) | $94.76 | 0.72% | |
AXP | 133 (2) | Jan 19, 2018 | $13,035.57 ($98.01) | Jan 24, 2018 | $13,213.88 ($99.35) | $178.32 | 1.37% | |
F | 3659 (4) | Jan 17, 2018 | $44,004.94 ($12.03) | Jan 24, 2018 | $44,126.44 ($12.06) | $121.50 | 0.28% | |
FB | 73 (2) | Jan 16, 2018 | $12,983.27 ($177.85) | Jan 19, 2018 | $13,225.87 ($181.18) | $242.60 | 1.87% | |
VZ | 254 (2) | Jan 9, 2018 | $13,100.67 ($51.58) | Jan 19, 2018 | $13,168.93 ($51.85) | $68.26 | 0.52% | |
INTC | 102 (1) | Jan 10, 2018 | $4,334.48 ($42.49) | Jan 17, 2018 | $4,524.74 ($44.36) | $190.26 | 4.39% | |
ALL | 130 (2) | Jan 4, 2018 | $13,075.84 ($100.58) | Jan 16, 2018 | $13,285.14 ($102.19) | $209.31 | 1.60% | |
PG | 48 (1) | Jan 3, 2018 | $4,350.72 ($90.64) | Jan 8, 2018 | $4,399.64 ($91.66) | $48.92 | 1.12% | |
SO | 909 (4) | Dec 18, 2017 | $44,355.66 ($48.80) | Jan 8, 2018 | $42,912.89 ($47.21) | ($1,442.77) | -3.25% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | Ticker | Amnt (pieces) | Open date | O. Price | Close date | C. Price | Profit/Loss | |
---|---|---|---|---|---|---|---|---|
566 | LLY | 104 (2) | Jan 24, 2018 | $8,769.24 ($84.32) | Jan 25, 2018 | $8,837.25 ($84.97) | $68.02 | 0.78% | |
564 | LLY | 52 (1) | Jan 23, 2018 | $4,391.88 ($84.46) | Jan 25, 2018 | $4,418.63 ($84.97) | $26.75 | 0.61% | |
563 | AXP | 89 (2) | Jan 23, 2018 | $8,723.89 ($98.02) | Jan 24, 2018 | $8,842.37 ($99.35) | $118.49 | 1.36% | |
562 | F | 1469 (4) | Jan 22, 2018 | $17,627.56 ($12.00) | Jan 24, 2018 | $17,715.70 ($12.06) | $88.14 | 0.50% | |
561 | F | 1100 (3) | Jan 19, 2018 | $13,200.99 ($12.00) | Jan 24, 2018 | $13,265.67 ($12.06) | $64.68 | 0.49% | |
560 | AXP | 44 (1) | Jan 19, 2018 | $4,311.68 ($97.99) | Jan 24, 2018 | $4,371.51 ($99.35) | $59.83 | 1.39% | |
558 | F | 728 (2) | Jan 18, 2018 | $8,780.70 ($12.06) | Jan 24, 2018 | $8,779.46 ($12.06) | ($1.24) | -0.01% | |
557 | F | 362 (1) | Jan 17, 2018 | $4,395.69 ($12.14) | Jan 24, 2018 | $4,365.61 ($12.06) | ($30.08) | -0.68% | |
559 | VZ | 170 (2) | Jan 18, 2018 | $8,766.20 ($51.57) | Jan 19, 2018 | $8,813.85 ($51.85) | $47.65 | 0.54% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { GraphQLClient } = require('graphql-request') | |
const { createAuthMiddlewareForClientCredentialsFlow } = require('@commercetools/sdk-middleware-auth') | |
const ctpCredentials = { | |
apiUrl: 'https://api.commercetools.com', | |
authUrl: 'https://auth.commercetools.com', | |
projectKey: '...', | |
clientId: '...', | |
clientSecret: '...' | |
} |