This file contains hidden or 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
| Sell Short | |
| Side=5 -- this triggers the sell short | |
| Typ=2 -- this triggers a limit order | |
| Px=22 -- this is the limit price | |
| <FIXML xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2"> | |
| <Order TmInForce="0" Typ="2" Side="5" Px="22" Acct="12345678"> | |
| <Instrmt SecTyp="CS" Sym="F"/> | |
| <OrdQty Qty="1"/> |
This file contains hidden or 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
| <?php | |
| // This is using the PHP OAuth extenstion. | |
| // http://www.php.net/manual/en/book.oauth.php | |
| $consumer_key = '0cc175b9c0f1b6a831c399e269772661'; | |
| $consumer_secret = 'ff2513194e75315625628304c9eb66e8'; | |
| $access_token = '150a96573adf12b21dab621e85497e6e'; | |
| $access_secret = '5c7b57d450a71d378a5eda991f809e56'; | |
| try { |
This file contains hidden or 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
| $ forever start server.js | |
| info: Forever processing file: server.js | |
| { | |
| "process": { | |
| "pid": 82761, | |
| "uid": 501, | |
| "gid": 20, | |
| "cwd": "/Users/jbarry/Projects/api-streaming", | |
| "execPath": "/usr/local/Cellar/node/0.4.12/bin/node", | |
| "version": "v0.4.12", |
This file contains hidden or 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
| ruby-1.9.2-p290:forever jbarry$ npm test | |
| > [email protected] test /usr/local/lib/node_modules/forever | |
| > vows --spec --isolate | |
| ♢ forever/spawn-options | |
| When using forever an instance of forever.Monitor with valid options passing environment variables to env-vars.js | |
| ✓ should pass the environment variables to the child |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <response id="-198e0f1:134c3f848b9:35c3"> | |
| <accountholdings> | |
| <holding> | |
| <accounttype>2</accounttype> | |
| <costbasis>0.0</costbasis> | |
| <gainloss>0.0</gainloss> | |
| <instrument> | |
| <cusip>O01CVJBK4</cusip> | |
| <desc>BAC Jan 21 2012 6.00 Call</desc> |
This file contains hidden or 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
| <FIXML xmlns="http://www.fixprotocol.org/FIXML-5-0-SP2"> | |
| <Order TmInForce="0" Typ="1" Side="1" PosEfct="O" Acct="12345678"> | |
| <Instrmt CFI="OC" SecTyp="OPT" MatDt="2012-01-27T00:00:00" StrkPx="131" Sym="SPY"/> | |
| <OrdQty Qty="1"/> | |
| </Order> | |
| </FIXML> |
This file contains hidden or 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
| <?php | |
| require_once 'oauth.php'; | |
| $consumer_key = ''; | |
| $consumer_secret = ''; | |
| $access_token = ''; | |
| $access_secret = ''; | |
| $consumer = new OAuthConsumer($consumer_key,$consumer_secret); | |
| $access = new OAuthToken($access_token,$access_secret); |
This file contains hidden or 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
| import java.security.InvalidKeyException; | |
| import java.security.NoSuchAlgorithmException; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import org.joda.time.DateTime; | |
| import org.joda.time.format.DateTimeFormat; | |
| import org.joda.time.format.DateTimeFormatter; | |
| import org.jose4j.jws.AlgorithmIdentifiers; | |
| import org.jose4j.jws.JsonWebSignature; |
This file contains hidden or 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
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
This file contains hidden or 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
| (function (callback) { | |
| 'use strict'; | |
| const httpTransport = require('https'); | |
| const httpOptions = { | |
| hostname: 'stream.tradier.com', | |
| port: '443', | |
| path: '/v1/markets/events?symbols=AAPL&sessionid=<SESSIONID>', | |
| method: 'GET', | |
| headers: { |
OlderNewer