rest-csharp-refimpl
===================
Reference implementation of the OANDA REST API in C#
Refer to developer.oanda.com for full details and documentation of the API
## Overview
This solution contains three projects:
1. OANDARestLibrary
* This is the central library or wrapper for the API
2. ConsoleTest
* Console based test library that runs through many useful scenarios with the rest library
* If you're looking for how to do something (eg. modify a trade, stream rates, delete a position) this is a good place to start
3. TradingApp2
* Windows 8 App demonstrating some of the functionality of the API in a visual application
* Also demonstrates the client side OAuth flow
## How to get started
* Open the solution in visual studio (developed with VS2012 pro, but more recent versions should work)
* Set TradingApp2 as the startup project
* Run
* When prompted, login with your practice account
* Set ConsoleTest as the startup project
* Edit RestTest.cs, search for SetCredentials, and input your credentials for it to use
* Note: This test sequence will automatically place trades using the specified credentials
* Run
## OANDARestLibrary Overview
* Primary file is Rest.cs
* This is (nearly) the only file you should need to call into directly
* Contains functions for all actions that can be taken with the API
* Automatically refers to Credentials for access information (see below)
* Credentials.cs
* Used to set the credentials for the library to use (SetCredentials)
* Stores the server information for all the API environments
* Framework
* Some supporting framework classes
* TradeLibrary
* RatesSession - used to create a new streaming rates session
* EventsSession - used to create a new streaming events session
* DataTypes - various data types used for representing the data returned from the API
* DataTypes\Communications - extra classes used for communicating to and from the API, mostly just for the internal use of the library
*
## Warning
Leverage trading is high risk and not suitable for all. You could lose all of your deposited funds. Articles are for general information purposes only and are not investment advice or a solution to buy or sell any investment product. Opinions are those of the authors and not necessarily those of OANDA, its officers, or its directors. Examples shown are for illustrative purposes only and may not reflect current prices or offers from OANDA
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
OANDA REST API Wrapper C# (162个子文件)
Package.appxmanifest 1KB
packages.config 209B
App.config 187B
SampleDataSource.cs 34KB
AccountDataSource.cs 33KB
Rest.cs 33KB
LayoutAwarePage.cs 23KB
RestTest.cs 14KB
SuspensionManager.cs 12KB
InputSplitPage.xaml.cs 9KB
SplitPage.xaml.cs 9KB
RichTextColumns.cs 9KB
App.xaml.cs 7KB
LabsTest.cs 4KB
TransactionViewModel.cs 4KB
Credentials.cs 3KB
OrderPostViewModel.cs 3KB
AccountData.cs 3KB
ObservableObject.cs 3KB
OrderViewModel.cs 3KB
ItemsPage.xaml.cs 3KB
CandlesTest.cs 3KB
Credentials.cs 3KB
CandleViewModel.cs 3KB
PriceViewModel.cs 3KB
Account.cs 3KB
BindableBase.cs 2KB
PositionViewModel.cs 2KB
Transaction.cs 2KB
Request.cs 2KB
TradeViewModel.cs 2KB
RatesDataSource.cs 2KB
Instrument.cs 2KB
HistoricalPositionRatioResponse.cs 2KB
RequestViewModel.cs 2KB
Signal.cs 2KB
SpreadsResponse.cs 2KB
StreamSession.cs 2KB
Factory.cs 2KB
AssemblyInfo.cs 1KB
CandlesRequest.cs 1KB
CommitmentsOfTradersResponse.cs 1KB
Response.cs 1KB
AssemblyInfo.cs 1KB
BooleanToVisibilityConverter.cs 1KB
Price.cs 1KB
AssemblyInfo.cs 1KB
Candle.cs 878B
OrderPostRequest.cs 802B
TradeRequestViewModel.cs 762B
ChartViewModel.cs 761B
TestResults.cs 737B
Order.cs 725B
AccountDetails.cs 690B
DataManager.cs 675B
BooleanNegationConverter.cs 627B
AccountRequest.cs 620B
TradeData.cs 617B
PostOrderResponse.cs 602B
RatesSession.cs 596B
EventsSession.cs 508B
Common.cs 476B
DeleteTradeResponse.cs 472B
CalendarEvent.cs 426B
DeletePositionResponse.cs 411B
Position.cs 400B
Program.cs 398B
Event.cs 388B
UserData.cs 375B
CustomEventArgs.cs 362B
CandlesResponse.cs 349B
TransactionsResponse.cs 343B
TradesResponse.cs 318B
AccountResponse.cs 316B
PricesResponse.cs 308B
AutochartistResponse.cs 301B
InstrumentsResponse.cs 296B
PricePollRequest.cs 293B
PositionsResponse.cs 290B
SessionResponse.cs 278B
CentralDispatcher.cs 277B
AccountsResponse.cs 272B
Heartbeat.cs 252B
IHeartbeat.cs 244B
RateStreamResponse.cs 243B
EOrderType.cs 236B
OrdersResponse.cs 228B
EDirection.cs 201B
TradingApp2.csproj 13KB
OANDARestLibrary.csproj 6KB
ConsoleTest.csproj 3KB
Thumbs.db 110KB
.gitignore 3KB
README.md 2KB
LICENSE.md 1KB
SplashScreen.png 22KB
icon.png 13KB
Logo.png 6KB
header.9.png 6KB
graph_bg.9.png 5KB
共 162 条
- 1
- 2
资源评论
- RMBUM2015-10-09不错,感觉还可以,有借鉴的地方
- f123456ok2015-10-05不错,感觉还可以,有借鉴的地方
coastarica
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功