forked from goinvest/iexcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.go
26 lines (23 loc) · 1.06 KB
/
account.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2019-2022 The iexcloud developers. All rights reserved.
// Project site: https://github.com/goinvest/iexcloud
// Use of this source code is governed by a MIT-style license that
// can be found in the LICENSE file for the project.
package iex
// AccountMetadata provides details about an IEX Cloud account.
type AccountMetadata struct {
PayAsYouGo bool `json:"overagesEnabled"`
EffectiveDate EpochTime `json:"effectiveDate"`
EndDateEffective *EpochTime `json:"endDateEffective"`
SubscriptionTerm string `json:"subscriptionTermType"`
TierName string `json:"tierName"`
MessageLimit int `json:"messageLimit"`
MessagesUsed int `json:"messagesUsed"`
}
// Usage provides current month usage for your account.
type Usage struct {
MonthlyUsage int `json:"monthlyUsage"`
MonthlyPayAsYouGo int `json:"monthlyPayAsYouGo"`
DailyUsage map[string]int `json:"dailyUsage"`
TokenUsage map[string]int `json:"tokenUsage"`
KeyUsage map[string]int `json:"keyUsage"`
}