Skip to content

Instantly share code, notes, and snippets.

Trevor Thackston ttt733

Block or report user

Report or block ttt733

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ttt733
ttt733 / ShortProgram.cs
Created Jul 23, 2019
Shorting with the Alpaca API in C#
View ShortProgram.cs
using Alpaca.Markets;
using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
// With the Alpaca API, you can open a short position by submitting a sell
// order for a security that you have no open long position with.
namespace ShortingExample
@ttt733
ttt733 / short_orders.py
Last active Jul 15, 2019
Shorting with the Alpaca API
View short_orders.py
import alpaca_trade_api as tradeapi
import time
if __name__ == '__main__':
"""
With the Alpaca API, you can open a short position by submitting a sell
order for a security that you have no open long position with.
"""
# First, open the API connection
@ttt733
ttt733 / MeanReversionPaperOnly.cs
Last active Apr 5, 2019
Mean Reversion Trading Algorithm (Alpaca)
View MeanReversionPaperOnly.cs
using Alpaca.Markets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
namespace Examples
{
class MeanReversionPaperOnly
{
You can’t perform that action at this time.