Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/dbv1/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 0 additions & 63 deletions api/mock_birdeye_client.go

This file was deleted.

9 changes: 0 additions & 9 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (

comms "api.audius.co/api/comms"
"api.audius.co/api/dbv1"
"api.audius.co/birdeye"
"api.audius.co/config"
"api.audius.co/esindexer"
"api.audius.co/logging"
Expand Down Expand Up @@ -309,7 +308,6 @@ func NewApiServer(config config.Config) *ApiServer {
openAudioPool: openAudioPool,
metricsCollector: metricsCollector,
rateLimitMiddleware: rateLimitMiddleware,
birdeyeClient: birdeye.New(config.BirdeyeToken),
solanaRpcClient: solanaRpc,
meteoraDbcClient: meteoraDbcClient,
newChainFlusher: newChainFlusher,
Expand Down Expand Up @@ -837,12 +835,6 @@ func NewApiServer(config config.Config) *ApiServer {
return app
}

type BirdeyeClient interface {
GetTokenOverview(ctx context.Context, mint string, frames string) (*birdeye.TokenOverview, error)
GetTokenAllTimeStats(ctx context.Context, mint string) (*birdeye.TokenAllTimeStats, error)
GetPrices(ctx context.Context, mints []string) (birdeye.TokenPriceMap, error)
}

type ApiServer struct {
*fiber.App
config *config.Config
Expand Down Expand Up @@ -875,7 +867,6 @@ type ApiServer struct {
skipAuthCheck bool // set to true in a test if you don't care about auth middleware
metricsCollector *MetricsCollector
rateLimitMiddleware *RateLimitMiddleware
birdeyeClient BirdeyeClient
solanaRpcClient *rpc.Client
meteoraDbcClient *meteora_dbc.Client
validators *Nodes
Expand Down
4 changes: 2 additions & 2 deletions api/swagger/swagger-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16092,8 +16092,8 @@ components:
coin_insights:
type: object
description:
"Additional token information from Birdeye's defi token overview
API.
"Additional token information derived from on-chain market and pool
data.

Includes price, volume, supply, market cap, and other on-chain and market
data.
Expand Down
2 changes: 1 addition & 1 deletion api/v1_wallet_coins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func TestWalletCoinsAudioPricingFromStats(t *testing.T) {
},
},
"artist_coin_stats": {
// AUDIO price from Birdeye (updated by AudioPriceJob)
// AUDIO price anchor (updated by AudioPriceJob from the AUDIO/USDC pool)
{
"mint": audioMint,
"price": 0.25, // $0.25 per AUDIO
Expand Down
Loading
Loading