Skip to content

Instantly share code, notes, and snippets.

@crowcoder
Created November 5, 2017 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crowcoder/84597543de7556f6fcfd6b99a29a23d3 to your computer and use it in GitHub Desktop.
Save crowcoder/84597543de7556f6fcfd6b99a29a23d3 to your computer and use it in GitHub Desktop.
namespace Service
{
public interface IStockService
{
Trade Buy(string ticker, decimal nbrShares);
decimal GetCurrentPrice(string ticker);
Trade GetLastTrade(string ticker);
Trade Sell(string ticker, decimal nbrShares);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment