Documentation ¶
Index ¶
- Variables
- func AccountRouter(svc *account.Service, db orm.DB, r *gin.RouterGroup)
- func AssetsRouter(svc *assets.Service, acc *account.Service, r *gin.RouterGroup)
- func AuthRouter(svc *auth.Service, r *gin.Engine)
- func ParseRsaPrivateKeyFromPemStr(privPEM string) (*rsa.PrivateKey, error)
- func PlaidRouter(svc *plaid.Service, acc *account.Service, r *gin.RouterGroup)
- func TransferRouter(svc *transfer.Service, acc *account.Service, r *gin.RouterGroup)
- func UserRouter(svc *user.Service, r *gin.RouterGroup)
- type AccountService
- type Asset
- type AssetObj
- type Assets
- type AssetsResponse
- type Auth
- type BrokerAccount
- type BrokerAccountResponse
- type BrokerAgreement
- type BrokerContact
- type BrokerDisclosures
- type BrokerIdentity
- type City
- type Country
- type ErrorBody
- type Plaid
- type Referral
- type ShareableProfileLink
- type State
- type SymbolTicker
- type Transfer
- type User
- type WatchList
Constants ¶
This section is empty.
Variables ¶
View Source
var AssetsList = []AssetObj{ AssetObj{ ID: "b0b6dd9d-8b9b-48a9-ba46-b9d54906e415", Class: "us_equity", Exchange: "NASDAQ", Symbol: "AAPL", Name: "Apple Inc. Common Stock", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "f30d734c-2806-4d0d-b145-f9fade61432b", Class: "us_equity", Exchange: "NASDAQ", Symbol: "GOOG", Name: "Alphabet Inc. Class C Capital Stock", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "69b15845-7c63-4586-b274-1cfdfe9df3d8", Class: "us_equity", Exchange: "NASDAQ", Symbol: "GOOGL", Name: "Alphabet Inc. Class A Common Stock", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "fc6a5dcd-4a70-4b8d-b64f-d83a6dae9ba4", Class: "us_equity", Exchange: "NASDAQ", Symbol: "FB", Name: "Facebook, Inc. Class A Common Stock", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "39a26dc1-927a-4590-b103-b8068a013e7f", Class: "us_equity", Exchange: "NYSE", Symbol: "SPOT", Name: "Spotify Technology S.A.", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "83e52ac1-bb18-4e9f-b68d-dda5a8af3ec0", Class: "us_equity", Exchange: "NYSE", Symbol: "SNAP", Name: "Snap Inc.", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "8ccae427-5dd0-45b3-b5fe-7ba5e422c766", Class: "us_equity", Exchange: "NASDAQ", Symbol: "TSLA", Name: "Tesla, Inc. Common Stock", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "57c36644-876b-437c-b913-3cdb58b18fd3", Class: "us_equity", Exchange: "NYSE", Symbol: "GE", Name: "General Electric Company", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "4f5baf1e-0e9b-4d85-b88a-d874dc4a3c42", Class: "us_equity", Exchange: "NYSE", Symbol: "V", Name: "VISA Inc.", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "2140998d-7f62-46f2-a9b2-e44350bd4807", Class: "us_equity", Exchange: "NYSE", Symbol: "MA", Name: "Mastercard Incorporated", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "f801f835-bfe6-4a9d-a6b1-ccbb84bfd75f", Class: "us_equity", Exchange: "NASDAQ", Symbol: "AMZN", Name: "Amazon.com, Inc. Common Stock", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "bb2a26c0-4c77-4801-8afc-82e8142ac7b8", Class: "us_equity", Exchange: "NASDAQ", Symbol: "NFLX", Name: "Netflix, Inc. Common Stock", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, AssetObj{ ID: "662a919f-1455-497c-90e7-f76248e6d3a6", Class: "us_equity", Exchange: "NYSE", Symbol: "TME", Name: "Tencent Music Entertainment Group American Depositary Shares, each representing two Class A Ordinary", Status: "active", Tradable: true, Marginable: true, Shortable: true, EasyToBorrow: true, Fractionable: true, IsWatchlisted: false, }, }
Functions ¶
func AccountRouter ¶
AccountRouter sets up all the controller functions to our router
func AssetsRouter ¶
func AuthRouter ¶
AuthRouter creates new auth http service
func ParseRsaPrivateKeyFromPemStr ¶
func ParseRsaPrivateKeyFromPemStr(privPEM string) (*rsa.PrivateKey, error)
func PlaidRouter ¶
func TransferRouter ¶
func UserRouter ¶
func UserRouter(svc *user.Service, r *gin.RouterGroup)
UserRouter declares the orutes for users router group
Types ¶
type AccountService ¶
type AccountService struct {
// contains filtered or unexported fields
}
AccountService represents the account http service
type AssetObj ¶
type AssetObj struct { ID string `json:"id"` Class string `json:"class"` Exchange string `json:"exchange"` Symbol string `json:"symbol"` Name string `json:"name"` Status string `json:"status"` Tradable bool `json:"tradable"` Marginable bool `json:"marginable"` Shortable bool `json:"shortable"` EasyToBorrow bool `json:"easy_to_borrow"` Fractionable bool `json:"fractionable"` Ticker interface{} `json:"ticker"` IsWatchlisted bool `json:"is_watchlisted"` }
type Assets ¶
type Assets struct {
// contains filtered or unexported fields
}
Auth represents auth http service
type AssetsResponse ¶
type AssetsResponse struct { Class string `json:"class"` EasyToBorrow bool `json:"easy_to_borrow"` Exchange string `json:"exchange"` ID string `json:"id"` Marginable bool `json:"marginable"` Shortable bool `json:"shortable"` Status string `json:"status"` Symbol string `json:"symbol"` Tradable bool `json:"tradable"` }
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth represents auth http service
type BrokerAccount ¶
type BrokerAccount struct { Contact BrokerContact `json:"contact"` Identity BrokerIdentity `json:"identity"` Disclosures BrokerDisclosures `json:"disclosures"` Agreements []BrokerAgreement `json:"agreements"` }
type BrokerDocument struct { DocumentType string `json:"document_type"` DocumentSubType string `json:"document_sub_type"` Content string `json:"content"` MimeType string `json:"mime_type"` }
type BrokerTrustedContact struct { Code string `json:"code"` Url string `json:"url"` ReferredSignups int `json:"referred_signups"` }
type BrokerAccountResponse ¶
type BrokerAgreement ¶
type BrokerContact ¶
type BrokerDisclosures ¶
type BrokerIdentity ¶
type BrokerIdentity struct { FirstName string `json:"given_name"` LastName string `json:"family_name"` DateOfBirth string `json:"date_of_birth"` TaxID string `json:"tax_id"` TaxIDType string `json:"tax_id_type"` CountryOfCitizenship string `json:"country_of_citizenship"` CountryOfBirth string `json:"country_of_birth"` CountryOfTaxResidence string `json:"country_of_tax_residence"` FundingSource []string `json:"funding_source"` }
type Plaid ¶
type Plaid struct {
// contains filtered or unexported fields
}
Auth represents auth http service
type ShareableProfileLink ¶
type ShareableProfileLink struct {}
type SymbolTicker ¶
type SymbolTicker struct { DailyBar struct { C float64 `json:"c"` H float64 `json:"h"` L float64 `json:"l"` O float64 `json:"o"` T time.Time `json:"t"` V int `json:"v"` } `json:"dailyBar"` LatestQuote struct { Ap int `json:"ap"` As int `json:"as"` Ax string `json:"ax"` Bp int `json:"bp"` Bs int `json:"bs"` Bx string `json:"bx"` C []string `json:"c"` T time.Time `json:"t"` } `json:"latestQuote"` LatestTrade struct { C []string `json:"c"` I int `json:"i"` P float64 `json:"p"` S int `json:"s"` T time.Time `json:"t"` X string `json:"x"` Z string `json:"z"` } `json:"latestTrade"` MinuteBar struct { C float64 `json:"c"` H float64 `json:"h"` L float64 `json:"l"` O float64 `json:"o"` T time.Time `json:"t"` V int `json:"v"` } `json:"minuteBar"` PrevDailyBar struct { C int `json:"c"` H float64 `json:"h"` L float64 `json:"l"` O float64 `json:"o"` T time.Time `json:"t"` V int `json:"v"` } `json:"prevDailyBar"` Symbol string `json:"symbol"` }
type Transfer ¶
type Transfer struct {
// contains filtered or unexported fields
}
Auth represents auth http service
Click to show internal directories.
Click to hide internal directories.